Assembly: System.Speech (in system.speech.dll)
/** @event */ public void add_SpeechRecognized (EventHandler<SpeechRecognizedEventArgs> value) /** @event */ public void remove_SpeechRecognized (EventHandler<SpeechRecognizedEventArgs> value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Handlers subscribed to the SpeechRecognized event of the instance of Grammar used to recognize a given candidate phrase are always called prior calling the handlers for E:System.Speech.Recognition.SpeechRecognizer.SpeechRecognized. Any tasks specific to a particular grammar should always be handled in the hanlder for that classes SpeechRecognizedevent.
Handlers of SpeechRecognized events can obtain the best possible candidate phrase, as well as a list of up to MaxAlternates phrases with lower confidence levels through an instance of the RecognitionResult object returned by the Result property of the SpeechRecognizedEventArgs object passed to the handler. (SpeechRecognitionRejectedEventArgs is derived fromSpeechRecognitionEventArgs)).
The confidence level cut off for recognition is an arbitrary feature of any particular recognition engine and is not settable by applications.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.