SpeechRecognitionEngine Constructor

SpeechRecognitionEngine Constructor

 

Initializes a new instance of the SpeechRecognitionEngine class.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

NameDescription
System_CAPS_pubmethodSpeechRecognitionEngine()

Initializes a new instance of the SpeechRecognitionEngine class using the default speech recognizer for the system.

System_CAPS_pubmethodSpeechRecognitionEngine(CultureInfo)

Initializes a new instance of the SpeechRecognitionEngine class using the default speech recognizer for a specified locale.

System_CAPS_pubmethodSpeechRecognitionEngine(RecognizerInfo)

Initializes a new instance of the SpeechRecognitionEngine using the information in a RecognizerInfo object to specify the recognizer to use.

System_CAPS_pubmethodSpeechRecognitionEngine(String)

Initializes a new instance of the SpeechRecognitionEngine class with a string parameter that specifies the name of the recognizer to use.

You can construct a SpeechRecognitionEngine instance from any of the following:

  • The default speech recognition engine for the system

  • A specific speech recognition engine that you specify by name

  • The default speech recognition engine for a locale that you specify

  • A specific recognition engine that meets the criteria that you specify in a RecognizerInfo object.

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:

Return to top
Show:
© 2016 Microsoft