.NET Framework Class Library
SpeechRecognizedEventArgs Class

Returns notification from the SpeechRecognized event.

Namespace:  System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)
Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class SpeechRecognizedEventArgs _
    Inherits RecognitionEventArgs
Visual Basic (Usage)
Dim instance As SpeechRecognizedEventArgs
C#
[SerializableAttribute]
public class SpeechRecognizedEventArgs : RecognitionEventArgs
Visual C++
[SerializableAttribute]
public ref class SpeechRecognizedEventArgs : public RecognitionEventArgs
JScript
public class SpeechRecognizedEventArgs extends RecognitionEventArgs
Remarks

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.

Examples

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);
                };
Inheritance Hierarchy

System..::.Object
  System..::.EventArgs
    System.Speech.Recognition..::.RecognitionEventArgs
      System.Speech.Recognition..::.SpeechRecognizedEventArgs
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

SpeechRecognizedEventArgs()()()
SpeechHypothesizedEventArgs
SpeechRecognitionRejectedEventArgs
Tags :


Page view tracker