This documentation is archived and is not being maintained.

EmulateRecognizeCompletedEventArgs Class

Returns data from the EmulateRecognizeCompleted event.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)

public class EmulateRecognizeCompletedEventArgs : AsyncCompletedEventArgs
public class EmulateRecognizeCompletedEventArgs extends AsyncCompletedEventArgs
public class EmulateRecognizeCompletedEventArgs extends AsyncCompletedEventArgs

An instance of EmulateRecognizeCompletedEventArgs is created when the SpeechRecognitionEngine.EmulateRecognizeCompleted event is raised.

EmulateRecognizeCompletedEventArgs derives from System.ComponentModel.AsyncCompletedEventArgs.

Detailed information about a recognized phrase available through the Result property.


System.Object
   System.EventArgs
     System.ComponentModel.AsyncCompletedEventArgs
      Microsoft.Speech.Recognition.EmulateRecognizeCompletedEventArgs

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, obtained from the Result property on the instance of EmulateRecognizeCompletedEventArgs passed to the handler.

_recognizer.EmulateRecognizeCompleted += delegate(object sender, EmulateRecognizeCompletedEventArgs eventArgs) {
    _asyncEmulation = false;
    Utils.DisplayAudioInputFormat(_audioStateLabel, _recognizer);
    Utils.DisplayRecognizerState(_recognizerStateLabel, _recognizer.State);
    Utils.DisplayAudioInputStatus(_audioDeviceStatusLabel, _recognizer.AudioStatus);
    DisplayResult(eventArgs.Result);
};

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

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

Reference

EmulateRecognizeCompletedEventArgs Members
Microsoft.Speech.Recognition Namespace
Result
EmulateRecognizeCompleted
EmulateRecognize
EmulateRecognizeAsync
SpeechRecognizer
System.ComponentModel.AsyncCompletedEventArgs
Show: