Share via


SpeechContinuousRecognitionSession.PauseAsync Method

Definition

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

public:
 virtual IAsyncAction ^ PauseAsync() = PauseAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction PauseAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction PauseAsync();
function pauseAsync()
Public Function PauseAsync () As IAsyncAction

Returns

An asynchronous handler called when the operation is complete.

Attributes

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.

Applies to

See also