public void SpeechRecognitionEngineSetup3() { manualResetEvent = new ManualResetEvent(false); if (!_initialized) { return; } string[] words = { "Hello", "Welcome" }; _speechToText = SpeechToText.CreateInstance(words); _speechToText.WordRecognized += (SpeechToText_WordsRecognized); _speechToText.ChangeSTTEngine(new HSpeechRecognitionEngine()); //_speechToText.WordHypothesized += (SpeechToText_WordsRecognized); //_speechToText.SpeechDetected += (SpeechToText_WordsRecognized); //_speechToText.SpeechRecognitionRejected += (sre_SpeechRecognizedRejected); //_speechToText.RecognitionCompleted += (sre_RecognizeCompleted); _audioConnector.Connect(_phoneCallAudioReceiver, _speechToText); //_audioConnector.Connect(recordDataMixer, _speechToText); manualResetEvent.WaitOne(); }