Using System.Speech.Recognition opens Windows Spee

2019-01-20 14:42发布

问题:

I tried implementing some simple speech recognition WinForms program in C# like the one described here in Michael Levy answer:

good Speech recognition API

The problem i have is that any time i run the program Windows Speech Recognition opens and is also doing stuff based on what i am saying. Also when the program starts i have to say "start listening" for speech recognition to work.

My question is: How can i use speech recognition without having Windows Speech Recognition also act on what i am saying? I don't need Windows Speech Recognition UI to open at all and i need to be able to use recognition without having to say "start listening" before.

Thanks for your answers

回答1:

Are you sure you are using an inproc recognizer for your application only. You do this by instantiating a SpeechRecognitionEngine() in your application. See SpeechRecognitionEngine Class. I suspect you are instantiating a shared recognizer - SpeechRecognizer Class