Hi there
I'm trying to use SpeechLib with my project to respond to specific commands within my program using speech recognition.
Every time I initialize the speech recognition section of the code, it starts the Windows 7 Speech Recognition which then tries to listen to everything I say, including stupid commands like minimize the program or exit application.
Is there a way that I can force it to only listen to a set of commands that I specify?
Currently I am using
menuRule.InitialState.AddWordTransition(null, "command here", " ", SpeechGrammarWordType.SGLexical, "command here", 1, ref PropValue, 1.0F)
to add commands, then
grammar.Rules.Commit();
grammar.CmdSetRuleState("MenuCommands", SpeechRuleState.SGDSActive);
to finalize them
Any help would be most appreciated! Thanks!