Provides access to the functionality of an installed speech synthesis engine (voice).
Windows includes Microsoft-signed voices that can be used for a variety of languages. Each voice generates synthesized speech in a single language, as spoken in a specific country/region.
Only Microsoft-signed voices installed on the system can be used to generate speech. If no language is specified, the voice that most closely matches the language selected by the user in the Language control panel is loaded.
The SpeechSynthesizer class has these types of members:
The SpeechSynthesizer class has these constructors.
|SpeechSynthesizer||Initializes a new instance of a SpeechSynthesizer object.|
The SpeechSynthesizer class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|Dispose [C#, VB]||Performs tasks associated with freeing, releasing, or resetting unmanaged resources.|
|SynthesizeSsmlToStreamAsync||Asynchronously generate speech output from a string containing Speech Synthesis Markup Language (SSML).|
|SynthesizeTextToStreamAsync||Asynchronously generate speech output from a string.|
The SpeechSynthesizer class has these properties.
|Read-only||Gets a collection of all installed speech synthesis engines (voices).|
|Read-only||Gets the default speech synthesis engine (voice).|
|Read/write||Gets or sets the speech synthesis engine (voice).|
Your Windows Store app can use a SpeechSynthesizer object to create an audio stream and output speech based on a plain text string.
Minimum supported client
|Windows 8.1 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 R2 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|
- Speech synthesis sample