This topic has not yet been rated - Rate this topic

SpeechSynthesizer.CancelAll method

Applies to Windows Phone only

Cancels all asynchronous text-to-speech calls that are in the active queue.

Syntax

Public Sub CancelAll()

Parameters

This method has no parameters.

Remarks

If speech synthesis is occurring and a user triggers another speech synthesis attempt, you might choose to cancel the current attempt and start over with the newest attempt by calling the CancelAll method. OperationCanceledException is raised when the CancelAll method is called, so you can choose to handle the exception by adding a try-catch statement to your code wherever SpeakTextAsync, SpeakSsmlAsync or SpeakSsmlFromUriAsync is called.

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

Namespace

Windows.Phone.Speech.Synthesis
Windows::Phone::Speech::Synthesis [C++]

Metadata

Windows.winmd

Capabilities

ID_CAP_SPEECH_RECOGNITION [Windows Phone]

See also

SpeechSynthesizer

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.