SpeechRecognizer class

Applies to Windows Phone only

Enables speech recognition that uses a custom graphical user interface (GUI).

Syntax

Public NotInheritable Class SpeechRecognizer
    Implements IDisposable

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The SpeechRecognizer class has these types of members:

Constructors

The SpeechRecognizer class has these constructors.

ConstructorDescription
SpeechRecognizer Initializes a new instance of the SpeechRecognizer class.

 

Events

The SpeechRecognizer class has these events.

EventDescription
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.

MethodDescription
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.

PropertyAccess typeDescription

Grammars

Read-onlyGets the collection of grammar objects that are associated with the speech recognizer.

Settings

Read-onlyGets 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 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

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]

See also

Object
IClosable

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.