SpeechContinuousRecognitionSession.PauseAsync SpeechContinuousRecognitionSession.PauseAsync SpeechContinuousRecognitionSession.PauseAsync SpeechContinuousRecognitionSession.PauseAsync SpeechContinuousRecognitionSession.PauseAsync Method

Definition

Asynchronously pause a continuous speech recognition session to update a local grammar file or list constraint.

public : IAsyncAction PauseAsync()
IAsyncAction PauseAsync() const;
public IAsyncAction PauseAsync()
Public Function PauseAsync() As IAsyncAction
Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession.pauseAsync().done( /* Your success and error handlers */ );

Returns

An asynchronous handler called when the operation is complete.

Remarks

An error is returned if SpeechRecognizerState is Idle or Paused.

If the list of constraints is empty (which defaults to a SpeechRecognitionTopicConstraint ), or a SpeechRecognitionTopicConstraint is present in the list of constraints, PauseAsync fails with error code COR_E_INVALIDOPERATION.

See also