SpeechContinuousRecognitionSession.PauseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.