ISpeechRecognizerStateControl.StopListeningAndProcessAudio() method

 

The StopListeningAndProcessAudio() method interrupts the current audio capture operation and finishes processing on the captured audio data.

Syntax

public void StopListeningAndProcessingAudio();

Remarks

The StopListeningAndProcessAudio() method is implemented by the SpeechRecognizer class. Custom implementations should raise the ISpeechRecognizerStateControl.AudioCaptureStateChanged event with a SpeechRecognitionAudioCaptureStateChangedEventArgs.State property value of SpeechRecognizerAudioCaptureState.Thinking before analyzing the audio data, and then raise the event again with a State of Completed when finished.

For more information and implementation examples, see the SpeechRecognizer.StopListeningAndProcessAudio() method documentation.

Requirements

Minimum Supported Client

Windows 8

Required Extensions

Bing.Speech

Namespace

Bing.Speech