Thursday, May 24, 2007

How many TOPLEVEL="Active" rules can I have?

Empirical Answer: 256

When I put more than 256 rules in a grammar and try to load it, I get a System.OutOfMemoryException: Insufficient memory to continue the execution of the program. at SpeechLib.ISpeechRecoGrammar.CmdSetRuleIdState(Int32 RuleId, SpeechRuleState State)at SwitchSapi.Form1.OnLoad(EventArgs e)

(Sapi 5.1)

The good news is you can make a larger grammar, you just can't have more rules than that that are top level.

No comments: