Hi Currently I'm trying to do a simple Voice Recognition but when I try to do this:
SpeechRecognitionEngine recEngine;
var language = new System.Globalization.CultureInfo("en");
recEngine = new SpeechRecognitionEngine(language); //Crashes here.
recEngine.SetInputToDefaultAudioDevice();
var _dictationGrammar = new DictationGrammar();
recEngine.LoadGrammar(_dictationGrammar);
recEngine.SpeechRecognized += recEngine_ListenEvent;
It crashes because of : 'No recognizer of the required ID found. Parameter name: culture'
What I got as usings are:
using System.Speech.Recognition;
using System.Globalization;
Any Idea? What I think is that I need to install the recognition language but is there a way to do so in code?