SpeechSynthesizer class

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

Syntax

public sealed class SpeechSynthesizer : IDisposable
Public NotInheritable Class SpeechSynthesizer
    Implements IDisposable
public ref class SpeechSynthesizer sealed : IClosable

Members

The SpeechSynthesizer class has these types of members:

  • Constructors
  • Events
  • Methods

Constructors

The SpeechSynthesizer class has these constructors.

Constructor Description
SpeechSynthesizer Initializes a new instance of the SpeechSynthesizer class.

 

Events

The SpeechSynthesizer class has these events.

Event Description
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.

Method Description
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

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.WinMD

Capabilities

ID_CAP_SPEECH_RECOGNITION [Windows Phone]

Attributes

[MarshalingBehavior(Agile)]

[Version(0x06020000)]

See also

Object

IClosable