Skip to content
On The Agentic List 2026Learn more

Glossary

SSML (Speech Synthesis Markup Language)

SSML is a W3C markup language that controls how text-to-speech engines read text aloud: pauses, emphasis, pitch, rate and how numbers are pronounced.

Updated November 30, 2026

What Is SSML?

SSML (Speech Synthesis Markup Language) is an XML-based markup language that tells a text-to-speech (TTS) engine how to read text aloud. It is a W3C Recommendation: version 1.0 was published in 2004 and version 1.1 in 2010. With SSML, developers can add pauses, emphasize words, change speaking rate and pitch, and control how numbers, dates and abbreviations are pronounced.

Plain text leaves those choices to the engine. SSML lets a voice application make them explicitly, which is useful wherever the default reading would confuse a listener: phone numbers, confirmation codes, brand names or a sentence that needs a beat of silence before the important part.

How SSML Works

An SSML document wraps text in a root speak element and adds tags around the parts that need special handling. The engine reads the markup and adjusts its output. Common elements include:

  • break: Inserts a pause of a set length or strength, for example between steps in instructions.
  • prosody: Adjusts rate, pitch and volume for a span of text, shaping the voice's prosody.
  • emphasis: Stresses a word or phrase.
  • say-as: Tells the engine how to interpret content, such as reading "2024" as a date or a year, or a string as individual characters.
  • phoneme: Specifies exact pronunciation using a phonetic alphabet such as IPA, useful for names and brand terms.
  • sub: Substitutes spoken text for written text, such as reading "W3C" as "World Wide Web Consortium."
  • audio: Plays a recorded audio file inside the spoken output.
  • p and s: Mark paragraphs and sentences to guide phrasing.
  • lang: Marks text in a different language so the engine pronounces it correctly.

Support varies. Each TTS engine implements its own subset of SSML, sometimes with vendor-specific extensions, and some ignore tags they don't support. Always test markup on the engine you deploy.

Where SSML Is Used

SSML grew up with IVR systems and voice assistants, where every prompt was scripted and tuned by hand. It remains common in:

  • IVR and phone prompts: Reading menu options, hours and account balances clearly.
  • Confirmations: Spelling out a confirmation code character by character, with pauses between groups.
  • Accessibility tools: Screen readers and reading apps that need precise pronunciation.
  • Voice bots: Scripted voice bot flows that mix recorded audio with synthesized speech.

Phone systems that collect keypad input with DTMF often pair it with SSML prompts that tell callers which keys to press.

SSML in the Age of Voice AI

Generative voice agents change how SSML is used. When a large language model writes replies on the fly, nobody hand-tags each sentence. Teams handle this in a few ways:

  • Generated markup: The language model is instructed to output SSML, or a post-processing step adds tags for known patterns like phone numbers and dates.
  • Text normalization: Rules convert identifiers, currencies and units into speakable text before synthesis.
  • Pronunciation dictionaries: Lexicons fix how brand names and product terms are said, without tagging each occurrence.
  • Native audio models: Speech-to-speech models generate audio directly and may not accept SSML at all. They often take plain-language style direction instead, such as "speak slowly and calmly."

SSML is still valuable for the parts of a call where precision matters more than spontaneity, especially reading back identifiers that a caller must confirm.

Why SSML Matters for Customer Experience

Small reading errors erode trust quickly on the phone. A confirmation number read as one long number, a brand name mispronounced or a date read in the wrong format forces callers to ask again. SSML and related controls fix these predictable problems, which shows up in smoother calls and better naturalness ratings such as mean opinion score (MOS).

SSML and Maven Voice

Maven Voice works with leading voice providers, including OpenAI, Phonic, ElevenLabs and Cartesia, and supports both speech-to-speech models and cascaded STT and TTS engines. Maven handles orchestration, so teams can pick the engine that fits their brand tone and use case. For details callers need exactly, Maven Voice can also text order numbers, tracking links and confirmation codes during the call, so nobody has to spell anything back.

Frequently Asked Questions

Is SSML supported by every text-to-speech engine?

Most major TTS engines support SSML, but each supports a different subset of elements and attributes, and some add their own extensions. Check the engine's documentation and test your markup before deploying.

What is the difference between SSML and prosody?

Prosody is the rhythm, stress and intonation of speech. SSML is a markup language, and its prosody element is one of several tools it offers to control those qualities in synthesized speech.

Do voice AI agents still need SSML?

Sometimes. Agents built on cascaded TTS can use SSML for pauses, emphasis and pronunciation. Agents built on speech-to-speech models often generate audio directly and use other controls, such as style instructions and pronunciation guidance.

How do I make a TTS voice read a code character by character?

Use the say-as element with an interpretation such as characters, if your engine supports it, and add short breaks between groups so the listener can follow and write it down.

See it on your own conversations.

Request a free personalized demo.

Book a demo