Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SpeechRecognitionRejectedEventArgs Class

Returns notification from the SpeechRecognitionRejected event.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)
public class SpeechRecognitionRejectedEventArgs : RecognitionEventArgs
/** @attribute SerializableAttribute() */ 
public class SpeechRecognitionRejectedEventArgs extends RecognitionEventArgs
public class SpeechRecognitionRejectedEventArgs extends RecognitionEventArgs

An instance of SpeechRecognitionRejectedEventArgs is created when the SpeechRecognitionEngine.SpeechRecognitionRejected event is raised.

SpeechRecognitionRejected events are generated when no speech recognition hypothesis scores high enough for a recognizer to accept it.

Detailed information about rejected phrases is available through the Result property.

SpeechRecognitionRejectedEventArgs derives from RecognitionEventArgs.


In the example below, a delegate is defined to use the instance of SpeechRecognitionRejctedEventArgs passed to the handler for SpeechRecognitionRejected events to display information about rejected phrases.

// Handles the SpeechHypothesis event and displays the Hypothesis result.
            _recognizer.SpeechHypothesis +=
                delegate(object sender, SpeechHypothesisEventArgs 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

© 2014 Microsoft. All rights reserved.