Speech.Recognition GrammarBuilder/Choices Tree Structure

Posted by user2210179 on Stack Overflow See other posts from Stack Overflow or by user2210179
Published on 2013-11-11T01:58:17Z Indexed on 2013/11/11 21:54 UTC
Read the original article Hit count: 268

In playing around with C#'s Speech Recognition, I've stumbled across a road block in the creation of an effective GrammerBuilder with Choices (more specifically, Choices of Choices).

IE considering the following logical commands.

One solution would to "hard code" every combination of Speech lines and add them to a GrammarBuilder (ie "SET LEFT COLOR RED" and "SET RIGHT CLEAR", however, this would quickly max out the limit of 1024, especially when dealing with number combinations.

Another solution would to Append all 'columns' as "Choices" (and filter out incorrect paths upon 'recognition', however this seems like it's processor heavy and unnecessary.

The middle ground, seems like the best path - with Choices of Choices - like a tree structure on a GrammarBuilder - however I'm not sure how to proceed.

Any suggestions?

© Stack Overflow or respective owner

Related posts about c#

Related posts about tree