Creating a Speech Synthesis Markup Language File
In addition to allowing TTS with strings, the speech synthesizer allows you to define speech using the Speech Synthesis Markup Language (SSML). SSML offers a powerful language for authoring TTS scripts.
The structure of an SSML document consists of a root speak element, which has an xml:lang attribute that determines the default speaking voice used. See Listing 23.18.
Voice
elements define sections of speech that allow the speaking voice to be customized, including gender and language.
The stress and intonation of the speech can be modified using the prosody
element, allowing you to vary the volume and pitch of a word or speech fragment. For more detailed information on the prosody element, see ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.