"SpeechHypothesized event not raised"

Posted by Jankhana on Stack Overflow See other posts from Stack Overflow or by Jankhana
Published on 2010-03-03T07:51:14Z Indexed on 2010/03/09 10:21 UTC
Read the original article Hit count: 233

Filed under:
|

Hi all,

I need to detect the user voice when they pick-up the reciever on the other end.

Because Modems usually start playing files (playback terminal) when the first ring goes there. So I planned to use speech recognition when they say "hello", it can start playing the file until wait for playing file.

Or even any noise interference it can start speak.

I accomplished this with few settings. I found few common words that my engine detects when we speak and the words that comes when it's ringing. It works fine as a stand alone application but if I try to integrate this with my application it just does not raises "SpeechHypothesized" event.

I cant understand why this happens.

If i see using a break point, the engine is having the delegate assign and invocation property also is initialized properly but than to is doesn't call the event. For calling I'm using C4F tapi manager and for speech recognition i'm using System.Speech library of .Net 3.5.

The code for events is as follows :

 engine.SpeechDetected += new EventHandler<SpeechDetectedEventArgs>(engine_SpeechDetected);
 engine.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(engine_SpeechRecognized);
 engine.SpeechHypothesized+=new EventHandler<SpeechHypothesizedEventArgs> (engine_SpeechHypothesized);                   
 engine.SpeechRecognitionRejected += new EventHandler<SpeechRecognitionRejectedEventArgs>(engine_SpeechRecognitionRejected);

All event's are raised except the speechhypothesized event.

Any idea why this happens ????

© Stack Overflow or respective owner

Related posts about c#

Related posts about speech-recognition