troubleshooting Question

How to list the values in Speech.Recognition.Choices?

Avatar of codefinger
codefingerFlag for United States of America asked on
.NET ProgrammingVisual Basic.NETMicrosoft DevelopmentVoice Recognition
13 Comments1 Solution1309 ViewsLast Modified:
In my winforms voice enabled app, I want to display to the user a list of available commands. By available, I mean the commands the speech engine is supposed to recognize.  In my app there will be a limited set of about 50 or so.

( I know what commands are SUPPOSED to be there because my code added them to a supposedly empty grammar. In addition to helping the user, actually querying the engine will validate that it contains what it is supposed to contain.)

How do I pull the current values from the Speech.Recognition.Choices?

In debug mode, this works to return the items one at a time (zero is an example element).


But the same code is not recognized by my winforms app when I try to add it.  It will not compile because it says Oneof is not a member of Speech.Recognition.Choices and  System.Speech.Internal.GrammarBuilding.GrammarBuilderPhrase is not defined.

(Windows XP, Speech SDK 5.1, Net Framework 4.)

Any help appreciated.  

Thanks in advance.
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros