Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
SpeechRecognitionEngine Constructor
Include Protected Members
Include Inherited Members
Initializes a new instance of the SpeechRecognitionEngine class.
Overload List
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
Remarks
You can construct a SpeechRecognitionEngine instance from any of the following:
The default recognizer for the system
A specific recognizer that you select by name
The default recognizer for a locale that you specify
A specific recognizer that meets criteria that you specify in a RecognizerInfo object
A recognizer is an installed Runtime Language for speech recognition. The Microsoft Speech Platform Runtime 11 and Microsoft Speech Platform SDK 11 do not include any Runtime Languages for speech recognition. You must download and install a Runtime Language for each language in which you want to recognize speech. A Runtime Language includes the language model, acoustic model, and other data necessary to provision a speech engine to perform speech recognition in a particular language. See InstalledRecognizers() for more information.
Before the speech recognizer can begin recognition, you must load at least one speech recognition grammar and configure the input for the recognizer.
To load a grammar, call the LoadGrammar or LoadGrammarAsync method.
To configure the audio input, use one of the following methods: