I was running some passive speech recognition code in a Windows Phone project and I kept getting the following error
I was using the non-UI recognizer for passive listening on a thread.
SpeechRecognizer spchRecog = new SpeechRecognizer();
SpeechRecognitionResult spchResult = await spchRecog .RecognizeAsync();
SpeechRecognitionResult spchResult = await spchRecog .RecognizeWithUIAsync();
In the exception handling code on MSDN, the default error message shown to the user is
Actually, you have to just let the user know to enable the speech recognition service by navigating to
Home->Settings->Speech->Enable Speech Recognition Service
Ideally, the error message should automatically navigate the user to the appropriate setting. But that’s a long shot. In the short term, I modified the error message to
“In order to use speech recognition, you will need to enable the speech recognition service by navigating to Home Page->Settings->Speech->Enable Speech Recognition Service.”
That’s it! The recognizer to work like a charm.