// Public Methods (3) public void InitEngine() { _sre = new System.Speech.Recognition.SpeechRecognitionEngine(_engineId); _sre.SpeechRecognized += speechRecognized; _sre.RecognizeCompleted += recognizeCompleted; _sre.SpeechHypothesized += speechHypothesized; var grammar = new DictationGrammar(); _sre.LoadGrammar(grammar); _sre.SetInputToWaveFile(_filePath); }