ISpeechRecognizerStateControl interface

 

The ISpeechRecognizerStateControl interface represents an object that listens to audio input and interprets the audio as speech. This interface is implemented by the SpeechRecognizer class. Derived classes may be bound to a SpeechRecognizerUx class on a XAML page by using the SpeechRecognizerUx.SpeechRecognizer property.

Syntax

public interface ISpeechRecognizerStateControl

The ISpeechRecognizerStateControl interface has the following members.

Methods

Name

Description

RequestCancelOperation()

Interrupts speech recognition and returns control to the caller. This method can be called at any point in the speech recognition process.

StopListeningAndProcessAudio()

Interrupts the current audio capture operation and starts processing on the captured audio data.

Events

Name

Description

AudioCaptureStateChanged

Raised when the current speech recognition session moves from one state to another.

AudioLevelChanged

Raised when the ISpeechRecognizerStateControl detects a change in the user's speaking volume. Use the SpeechRecognitionAudioLevelChangedEventArgs object associated with this event to get the current volume level.

Remarks

For more information and code examples in a derived class, see the SpeechRecognizer class documentation.

Requirements

Minimum Supported Client

Windows 8

Required Extensions

Bing.Speech

Namespace

Bing.Speech