Returns notification from the SpeechRecognized event.
Namespace:
System.Speech.Recognition
Assembly:
System.Speech (in System.Speech.dll)
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class SpeechRecognizedEventArgs _
Inherits RecognitionEventArgs
Dim instance As SpeechRecognizedEventArgs
[SerializableAttribute]
public class SpeechRecognizedEventArgs : RecognitionEventArgs
[SerializableAttribute]
public ref class SpeechRecognizedEventArgs : public RecognitionEventArgs
public class SpeechRecognizedEventArgs extends RecognitionEventArgs
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..::.Object
System..::.EventArgs
System.Speech.Recognition..::.RecognitionEventArgs
System.Speech.Recognition..::.SpeechRecognizedEventArgs
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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.
.NET Framework
Supported in: 3.5, 3.0
Reference
SpeechRecognizedEventArgs()()()
SpeechHypothesizedEventArgs
SpeechRecognitionRejectedEventArgs