-api-id | -api-type |
---|---|
M:Windows.Media.SpeechRecognition.SpeechContinuousRecognitionSession.PauseAsync |
winrt method |
Asynchronously pause a continuous speech recognition session to update a local grammar file or list constraint.
An asynchronous handler called when the operation is complete.
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.
StartAsync, StopAsync, CancelAsync, Speech interactions, Speech recognition and speech synthesis sample