This documentation is archived and is not being maintained.

SpeechRecognizedEventArgs Class

Returns data from the SpeechRecognized event.

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

public class SpeechRecognizedEventArgs : RecognitionEventArgs
/** @attribute SerializableAttribute() */ 
public class SpeechRecognizedEventArgs extends RecognitionEventArgs
public class SpeechRecognizedEventArgs extends RecognitionEventArgs

An instance of SpeechRecognizedEventArgs is created when the SpeechRecognitionEngine.SpeechRecognized or Grammar.SpeechRecognized event is raised.

SpeechRecognizedEventArgs events are generated when one or more speech recognition hypothesis scores is high enough for a recognition engine to accept it.

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

SpeechRecognizedEventArgs derives from RecognitionEventArgs.


In the example below, a delegate is defined to use the instance of SpeechRecognizedEventArgs passed to the handler for SpeechRecognized events to display information about a recognized phrase.

// Handles the SpeechRecognized event and displays the recognized result.
            _recognizer.SpeechRecognized +=
                delegate(object sender, SpeechRecognizedEventArgs eventArgs)

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