SpeechRecognizedEventArgs Class
Returns notification from the SpeechRecognized event.
Assembly: System.Speech (in System.Speech.dll)
The SpeechRecognized event is raised by the
Grammar , SpeechRecognizer and SpeechRecognitionEngine classes.
SpeechRecognized 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)
{
DisplayResult(eventArgs);
};
System.EventArgs
System.Speech.Recognition.RecognitionEventArgs
System.Speech.Recognition.SpeechRecognizedEventArgs
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.