Compartir a través de


ISpeechRecognizerStateControl.RequestCancelOperation() method

 

The RequestCancelOperation() method interrupts speech recognition and returns control to the caller. This method can be called at any point in the speech recognition process.

Syntax

public void RequestCancelOperation();

Remarks

The RequestCancelOperation() method is implemented by the SpeechRecognizer class. Custom implementations should raise the ISpeechRecognizerStateControl.AudioCaptureStateChanged event with a SpeechRecognitionAudioCaptureStateChangedEventArgs.State property value of SpeechRecognizerAudioCaptureState.Cancelling before stopping the speech recognition session, and then raise the event again with a State of Cancelled when finished.

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

Requirements

Minimum Supported Client

Windows 8

Required Extensions

Bing.Speech

Namespace

Bing.Speech