Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
SpeechRecognizedEventArgs Class

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
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

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker