EmulateRecognizeCompletedEventArgs.Result Property

Gets the emulated recognition results.

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

Syntax

'Declaration
Public ReadOnly Property Result As RecognitionResult
public RecognitionResult Result { get; }
public:
property RecognitionResult^ Result {
    RecognitionResult^ get ();
}
/** @property */
public RecognitionResult get_Result ()
public function get Result () : RecognitionResult

Property Value

Returns the RecognitionResult, which is derived from RecognizedPhrase and contains full information about the a phrase returned by a recognition operation.

Remarks

The returned RecognitionResult provides information about a candidate phrase found by a speech recognition operation through the methods it inherited from RecognizedPhrase.

A list of all candidates, including the best candidate can be obtained from the Alternates property.

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, 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);
};

Thread Safety

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

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

EmulateRecognizeCompletedEventArgs Class
EmulateRecognizeCompletedEventArgs Members
Microsoft.Speech.Recognition Namespace
EmulateRecognizeCompletedEventArgs Class
EmulateRecognizeCompleted
EmulateRecognize
EmulateRecognizeAsync
SpeechRecognizer
System.ComponentModel.AsyncCompletedEventArgs