Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SpeechRecognitionEngine Members
Include Protected Members
Include Inherited Members
Provides the means to access and manage a speech recognition engine.
The SpeechRecognitionEngine type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SpeechRecognitionEngine() | Initializes a new instance of the SpeechRecognitionEngine class using the default speech recognizer for the system. | |
SpeechRecognitionEngine(CultureInfo) | Initializes a new instance of the SpeechRecognitionEngine class using the default speech recognizer for a specified locale. | |
SpeechRecognitionEngine(String) | Initializes a new instance of the SpeechRecognitionEngine class with a string parameter that specifies the name of the recognizer to use. | |
SpeechRecognitionEngine(RecognizerInfo) | Initializes a new instance of the SpeechRecognitionEngine using the information in a RecognizerInfo object to specify the recognizer to use. |
Top
Properties
Name | Description | |
---|---|---|
AudioFormat | Gets the format of the audio being received by the SpeechRecognitionEngine. | |
AudioLevel | Gets the level of the audio being received by the SpeechRecognitionEngine. | |
AudioPosition | Gets the current location in the audio stream being generated by the device that is providing input to the SpeechRecognitionEngine. | |
AudioState | Gets the state of the audio being received by the SpeechRecognitionEngine. | |
BabbleTimeout | Gets or sets the interval of time that a SpeechRecognitionEngine accepts input containing only background noise before finalizing recognition. | |
EndSilenceTimeout | Gets or sets the interval of silence that the SpeechRecognitionEngine will accept at the end of unambiguous input before finalizing a recognition operation. | |
EndSilenceTimeoutAmbiguous | Gets or sets the interval of silence that the SpeechRecognitionEngine will accept at the end of ambiguous input before finalizing a recognition operation. | |
Grammars | Gets a collection of the Grammar objects that are loaded in this SpeechRecognitionEngine instance. | |
InitialSilenceTimeout | Gets or sets the time interval during which a SpeechRecognitionEngine accepts input containing only silence before finalizing recognition. | |
MaxAlternates | Gets or sets the maximum number of alternate recognition results that the SpeechRecognitionEngine returns for each recognition operation. | |
NormalizerCollection | Gets the normalizer collection. | |
RecognizerAudioPosition | Gets the current location of the SpeechRecognitionEngine in the audio input that it is processing. | |
RecognizerInfo | Gets information about the current instance of SpeechRecognitionEngine. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Disposes the SpeechRecognitionEngine object. | |
Dispose(Boolean) | Disposes the SpeechRecognitionEngine object and releases resources used during the session. | |
EmulateRecognize(String) | Emulates input of a phrase to the speech recognizer, using text in place of audio for synchronous speech recognition. | |
EmulateRecognize(String, EmulateOptions) | Emulates input of a phrase to the speech recognizer, using text in place of audio for synchronous speech recognition, and specifies the type of recognition operation to perform. | |
EmulateRecognize(String, CompareOptions) | Emulates audio input to the recognition engine, using text in place of audio for synchronous speech recognition, and specifies how the recognizer handles Unicode comparison between the phrase and the loaded speech recognition grammars | |
EmulateRecognize([], CompareOptions) | Emulates input of specific words to the speech recognizer, using an array of RecognizedWordUnit objects in place of audio for synchronous speech recognition, and specifies how the recognizer handles Unicode comparison between the words and the loaded speech recognition grammars. | |
EmulateRecognize(String, CompareOptions, EmulateOptions) | Emulates audio input to the recognition engine, using text in place of audio for synchronous speech recognition, specifies how the recognizer handles Unicode comparison between the phrase and the loaded speech recognition grammars, and specifies the type of recognition operation to perform. | |
EmulateRecognize([], CompareOptions, EmulateOptions) | Emulates input of specific words to the speech recognizer, using an array of RecognizedWordUnit objects in place of audio for synchronous speech recognition, specifies how the recognizer handles Unicode comparison between the words and the loaded speech recognition grammars, and specifies the type of recognition operation to perform. | |
EmulateRecognizeAsync(String) | Emulates input of a phrase to the speech recognizer, using text in place of audio for asynchronous speech recognition. | |
EmulateRecognizeAsync(String, EmulateOptions) | Emulates input of a phrase to the speech recognizer, using text in place of audio for asynchronous speech recognition, and specifies the type of recognition operation to perform. | |
EmulateRecognizeAsync(String, CompareOptions) | Emulates input of a phrase to the speech recognizer, using text in place of audio for asynchronous speech recognition, and specifies how the recognizer handles Unicode comparison between the phrase and the loaded speech recognition grammars. | |
EmulateRecognizeAsync([], CompareOptions) | Emulates input of specific words to the speech recognizer, using text in place of audio for asynchronous speech recognition, and specifies how the recognizer handles Unicode comparison between the words and the loaded speech recognition grammars. | |
EmulateRecognizeAsync(String, CompareOptions, EmulateOptions) | Emulates audio input to the recognition engine, using text in place of audio for asynchronous speech recognition, specifies how the recognizer handles Unicode comparison between the phrase and the loaded speech recognition grammars, and specifies the type of recognition operation to perform. | |
EmulateRecognizeAsync([], CompareOptions, EmulateOptions) | Emulates input of specific words to the speech recognizer, using an array of RecognizedWordUnit objects in place of audio for asynchronous speech recognition, specifies how the recognizer handles Unicode comparison between the words and the loaded speech recognition grammars, and specifies the type of recognition operation to perform. | |
Equals | (inherited from Object) | |
Finalize | (inherited from Object) | |
GetHashCode | (inherited from Object) | |
GetType | (inherited from Object) | |
InstalledRecognizers | Returns information for all of the installed speech recognizers on the current system. | |
LoadGrammar | Synchronously loads a Grammar object. | |
LoadGrammarAsync | Asynchronously loads a Grammar object. | |
MemberwiseClone | (inherited from Object) | |
QueryRecognizerSetting | Returns the values of the current settings for a speech recognition engine managed by a SpeechRecognitionEngine object. | |
Recognize() | Performs a synchronous speech recognition operation. | |
Recognize(TimeSpan) | Performs a synchronous speech recognition operation with a specified initial silence timeout period. | |
RecognizeAsync() | Performs a single, asynchronous speech recognition operation. | |
RecognizeAsync(RecognizeMode) | Performs one or more asynchronous speech recognition operations. | |
RecognizeAsyncCancel | Terminates asynchronous recognition without waiting for the current recognition operation to complete. | |
RecognizeAsyncStop | Stops asynchronous recognition after the current recognition operation completes. | |
RequestRecognizerUpdate() | Requests that the recognizer pauses to update its state. | |
RequestRecognizerUpdate(Object) | Requests that the recognizer pauses to update its state and provides a user token for the associated event. | |
RequestRecognizerUpdate(Object, TimeSpan) | Requests that the recognizer pauses to update its state and provides an offset and a user token for the associated event. | |
SetInputToAudioStream | Configures the SpeechRecognitionEngine object to receive input from an audio stream. | |
SetInputToDefaultAudioDevice | Configures the SpeechRecognitionEngine object to receive input from the default audio device. | |
SetInputToNull | Disables the input to the speech recognizer. | |
SetInputToWaveFile | Configures the SpeechRecognitionEngine object to receive input from a Waveform audio format (.wav) file. | |
SetInputToWaveStream | Configures the SpeechRecognitionEngine object to receive input from a stream that contains Waveform audio format (.wav) data. | |
SimulateRecognize | Simulates recognition of the specified string. | |
ToString | (inherited from Object) | |
UnloadAllGrammars | Unloads all Grammar objects from the recognizer. | |
UnloadGrammar | Unloads a specified Grammar object from the SpeechRecognitionEngine instance. | |
UpdateRecognizerSetting(String, Int32) | Updates the specified setting for the SpeechRecognitionEngine with the specified integer value. | |
UpdateRecognizerSetting(String, String) | Updates the specified setting for the SpeechRecognitionEngine with the specified integer value. |
Top
Events
Name | Description | |
---|---|---|
AudioLevelUpdated | Raised when the SpeechRecognitionEngine reports the level of its audio input. | |
AudioSignalProblemOccurred | Raised when the SpeechRecognitionEngine detects a problem in the audio signal. | |
AudioStateChanged | Raised when the state changes in the audio being received by the SpeechRecognitionEngine. | |
EmulateRecognizeCompleted | Raised when the SpeechRecognitionEngine finalizes an asynchronous recognition operation of emulated input. | |
LoadGrammarCompleted | Raised when the SpeechRecognitionEngine finishes the asynchronous loading of a Grammar object. | |
RecognizeCompleted | Raised when the SpeechRecognitionEngine finalizes an asynchronous recognition operation. | |
RecognizerUpdateReached | Raised when a running SpeechRecognitionEngine pauses to accept modifications. | |
SpeechDetected | Raised when the SpeechRecognitionEngine detects input that it can identify as speech. | |
SpeechHypothesized | Raised when the SpeechRecognitionEngine has recognized a word or words that may be a component of multiple complete phrases in a grammar. | |
SpeechRecognitionRejected | Raised when the SpeechRecognitionEngine receives input that does not match any of its loaded and enabled Grammar objects. | |
SpeechRecognized | Raised when the SpeechRecognitionEngine receives input that matches any of its loaded and enabled Grammar objects. |
Top