SpeechRecognitionEngine.EmulateRecognizeCompleted Event
Event generated when an asynchronous emulation of speech recognition completes.
Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)
Syntax
'Declaration
Example
The example below shows the subscription of an anonymous method to the EmulateRecognizeCompleted. The method provides a display of state information about the recognized phrase.
_recognitionEngine.EmulateRecognizeCompleted += delegate(object sender, EmulateRecognizeCompletedEventArgs eventArgs) {
_asyncEmulation = false;
Utils.DisplayAudioInputFormat(_audioStateLabel, _recognitionEngine);
DisplayResult(eventArgs);
};
Remarks
The EmulateRecognizeCompleted event is generated in place of the RecognizeCompleted event on the completion of a EmulateRecognizeAsync operation.
The results of a speech recognition operation can be obtained in a handler subscribed to EmulateRecognizeCompleted by using the Result property found on the EmulateRecognizeCompletedEventArgsobject passed to the method.
Speech recognition emulation generates both standard speech recognition events (such as SpeechRecognized) as well as the EmulateRecognizeCompleted event.
Handlers subscribed to the standard event are called prior to the handler for EmulateRecognizeCompleted. For example, the hander for SpeechRecognized is called prior to calling the handler subscribing to EmulateRecognizeCompleted.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
SpeechRecognitionEngine Class
SpeechRecognitionEngine Members
Microsoft.Speech.Recognition Namespace
EmulateRecognizeCompletedEventArgs Class
SpeechRecognized
SpeechDetected
SpeechHypothesized
SpeechRecognitionRejected