zarthcode / EESpeak

A voice recognition application for electrical engineering.
7 stars 3 forks source link

When "Enable speech" is recognized, exception is thrown #5

Open okeefm opened 12 years ago

okeefm commented 12 years ago

Hello,

I'm running the version of your EESpeak software currently listed on the ZarthCode blog on my computer, which is running Windows 7 64-bit. Speech recognition works quite well, but when I try to enable speech, I get so far as hearing "speech enabled" before an exception is thrown with the following text:

System.InvalidOperationException: Cannot perform this operation while the recognizer is doing recognition.
 at System.Speech.Recognition.RecognizerBase.RecognizeAsync(RecognizeMode mode)
 at EESpeak.MainForm.speechRecognizer_SpeechRecognized(Object sender,     SpeechRecognizedEventArgs e)

Let me know if you want any more debugging info from me.

okeefm commented 12 years ago

Note: the same exception is thrown when I try to turn on metric prefixes.

zarthcode commented 12 years ago

Going to try to duplicate this, I suspect there's a bit of a logic issue when handling recognized speech - or it could be connected to he "loop" issue from awhile back.