SpeechSynthesizer class

Applies to Windows Phone only

A class for working with a synthesized text-to-speech (TTS) voice.

Syntax


public sealed class SpeechSynthesizer : IDisposable

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The SpeechSynthesizer class has these types of members:

Constructors

The SpeechSynthesizer class has these constructors.

ConstructorDescription
SpeechSynthesizer Initializes a new instance of the SpeechSynthesizer class.

 

Events

The SpeechSynthesizer class has these events.

EventDescription
BookmarkReached An event that fires when a <mark> element is reached in a Speech Synthesis Markup Language (SSML) file.
SpeechStarted An event that fires when the synthesized voice begins output.

 

Methods

The SpeechSynthesizer class has these methods. It also inherits methods from the Object class.

MethodDescription
CancelAll Cancels all asynchronous text-to-speech calls that are in the active queue.
Close Performs application-defined tasks associated with freeing, releasing, or resetting allocated resources.
GetVoice Gets the active synthesized voice.
SetVoice Sets the synthesized voice.
SpeakSsmlAsync(String) Asynchronously speaks a string of text with Speech Synthesis Markup Language (SSML) markup with a text-to-speech voice.
SpeakSsmlAsync(String,Object) Asynchronously speaks a string of text with Speech Synthesis Markup Language (SSML) markup with a text-to-speech voice.
SpeakSsmlFromUriAsync(Uri) Asynchronously speaks the content of a standalone Speech Synthesis Markup Language (SSML) document with a text-to-speech voice.
SpeakSsmlFromUriAsync(Uri,Object) Asynchronously speaks the content of a standalone Speech Synthesis Markup Language (SSML) document with a text-to-speech voice.
SpeakTextAsync(String) Asynchronously speaks the content of a plain-text string.
SpeakTextAsync(String,Object) Asynchronously speaks the content of a plain-text string.

 

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

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

Object
IClosable

 

 

Community Additions

ADD
Show:
© 2014 Microsoft