Reputation: 29
As part of an A.I. program that I'm writing, I would like to know if it is possible to print to the screen what the the default Windows SpeechRecognitionEngine is hearing. It's hard to explain, but I have a text box that's locked in my window, and as the engine is listening to what you're saying, I'd like the textbox to display what it's hearing/what words it's picked up, and I'd like it to do this AS it's hearing you. Afterwards, if it's heard you say a command that it recognizes, it will display the command in the textbox (this part has successfully been incorporated), and if it doesn't know what you said (if it wasn't a command), I'd like it to display what you said in red text.
If anybody knows how to dynamically get the speech recognition engine's 'thoughts' as it's listening, in C# of course, please do let me know how I can use this.
I hope I've explained what it is I'm trying to achieve, and I hope you understand.
Thank you for your time.
Upvotes: 0
Views: 284
Reputation: 5634
You can 'listen' to SpeechHypothesized event, which is meant for debugging and contain several RecognitionResult (the partially recognized word, alternatives, etc)
Upvotes: 1