How to use Speech Recognition when my OS (Windows 8 x64) is in Pt-BR? I want to use commands in English.
I'm using the following code:
private void Form1_Load(object sender, EventArgs e)
{
SpeechRecognizer sr = new SpeechRecognizer();
Choices commands = new Choices();
commands.Add("hi", "test");
GrammarBuilder gb = new GrammarBuilder();
gb.Append(commands);
Grammar g = new Grammar(gb);
sr.LoadGrammar(g);
sr.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(sr_SpeechRecognized);
}
void sr_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
textBox1.Text = e.Result.Text;
}
But it gives error in sr.LoadGrammar(g)
An unhandled exception of type 'System.PlatformNotSupportedException' occurred in System.Speech.dllAdditional information: No installed recognizer.