SpeechRecognizer class
Enables speech recognition that uses a custom graphical user interface (GUI).
Syntax
public sealed class SpeechRecognizer : IDisposable
Public NotInheritable Class SpeechRecognizer
Implements IDisposable
public ref class SpeechRecognizer sealed : IClosable
Members
The SpeechRecognizer class has these types of members:
- Constructors
- Events
- Methods
- Properties
Constructors
The SpeechRecognizer class has these constructors.
Constructor | Description |
---|---|
SpeechRecognizer | Initializes a new instance of the SpeechRecognizer class. |
Events
The SpeechRecognizer class has these events.
Event | Description |
---|---|
AudioCaptureStateChanged | This event is raised when a change occurs in the speech recognizer's audio capture state. |
AudioProblemOccurred | This event is raised when there are audio problems that could affect recognition accuracy. |
Methods
The SpeechRecognizer class has these methods. It also inherits methods from the Object class.
Method | Description |
---|---|
Close | Performs application-defined tasks associated with freeing, releasing, or resetting allocated resources. |
GetRecognizer | Gets the SpeechRecognizerInformation object that describes a speech recognizer. |
PreloadGrammarsAsync | Loads all grammars in the speech grammar set. |
RecognizeAsync | Begins a speech recognition session for a SpeechRecognizer object. |
SetRecognizer | Sets the active speech recognizer to the one specified in the SpeechRecognizerInformation object. |
Properties
The SpeechRecognizer class has these properties.
Property | Access type | Description |
---|---|---|
Grammars |
Read-only |
Gets the collection of grammar objects that are associated with the speech recognizer. |
Settings |
Read-only |
Gets the timeout settings associated with the speech recognizer. |
Remarks
The SpeechRecognizer class should only be used if you wish to display a custom graphical user interface (GUI) in your app. Otherwise, use the SpeechRecognizerUI class for speech recognition that includes a default GUI which is uniform across apps and utilities.
If a SpeechRecognizer instance is instantiated and no grammars have been loaded, the speech recognizer performs speech recognition against the pre-defined dictation grammar.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Speech.Recognition Windows::Phone::Speech::Recognition [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_SPEECH_RECOGNITION [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] ID_CAP_NETWORKING [Windows Phone] |
Attributes
[MarshalingBehavior(Agile)]
[Version(0x06020000)]
See also
IClosable