Speech Synthesis Markup Language


Speech Synthesis Markup Language is an XML-based markup language for speech synthesis applications. It is a recommendation of the W3C's voice browser working group. SSML is often embedded in VoiceXML scripts to drive interactive telephony systems. However, it also may be used alone, such as for creating audio books. For desktop applications, other markup languages are popular, including Apple's embedded speech commands, and Microsoft's SAPI Text to speech markup, also an XML language. It is also used to produce sounds via Azure Cognitive Services' Text to Speech API or when writing third-party skills for Google Assistant or Amazon Alexa.
SSML is based on the Java Speech Markup Language developed by Sun Microsystems, although the current recommendation was developed mostly by speech synthesis vendors. It covers virtually all aspects of synthesis, although some areas have been left unspecified, so each vendor accepts a different variant of the language. Also, in the absence of markup, the synthesizer is expected to do its own interpretation of the text. So SSML is not a strict standard in the sense of C, or even HTML.

Example

Here is an example of an SSML document:

xmlns:dc="http://purl.org/dc/elements/1.1/"
version="1.0">

Telephone Menu: Level 1




For English, press one.




Para español, oprima el dos.




Features

SSML specifies a fair amount of markup for prosody, which is not apparent in the above example. This includes markup for