SpeechRecognizer.EmulateRecognizeCompleted Event

Event generated when an asynchronous emulation of speech recognition completes.

Namespace: System.Speech.Recognition
Assembly: System.Speech (in system.speech.dll)

public event EventHandler<EmulateRecognizeCompletedEventArgs> EmulateRecognizeCompleted
/** @event */
public void add_EmulateRecognizeCompleted (EventHandler<EmulateRecognizeCompletedEventArgs> value)

/** @event */
public void remove_EmulateRecognizeCompleted (EventHandler<EmulateRecognizeCompletedEventArgs> value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

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.

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.

_recognizer.EmulateRecognizeCompleted += delegate(object sender, EmulateRecognizeCompletedEventArgs eventArgs) {
    _asyncEmulation = false;
    Utils.DisplayAudioInputFormat(_audioStateLabel, _recognizer);
    Utils.DisplayRecognizerState(_recognizerStateLabel, _recognizer.State);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions