> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SSML in Vobiz Speak XML — Speech Synthesis Markup Reference

> Use Speech Synthesis Markup Language (SSML) inside the Vobiz Speak XML element to control pronunciation, pauses, emphasis, and prosody of TTS output.

SSML lets you control pronunciation, pitch, and volume. Vobiz offers 60 Polly voices across 28 language codes, all on the standard engine.

To use SSML, set `voice` to a `Polly.<Name>` voice. Each Polly voice uses its own language, so you don't need the `language` attribute.

For more information on SSML, see Getting Started with SSML.

Speak elements with SSML can be nested inside Gather XML element tags.

## Examples

### Basic SSML Example

```xml XML Response theme={null}
<Response>
  <Speak voice="Polly.Amy">
    <prosody rate="medium">
    Hello and welcome to the Vobiz text-to-speech engine.
    <break/>
    <break/>
    We're now testing the
    <say-as interpret-as="spell-out">SSML</say-as>
    feature.
    </prosody>
  </Speak>
</Response>
```

### SSML with Gather

```xml XML Response theme={null}
<Response>
  <Gather numDigits="1">
  <Speak voice="Polly.Salli">
  <prosody rate="fast">
  Please press 1 to proceed.
  <break/>
  <break/>
  We're now testing the
  <say-as interpret-as="spell-out">SSML</say-as>
  feature.
  </prosody>
  </Speak>
  </Gather>
</Response>
```

## Polly voices

Use a voice as `Polly.<Name>`, for example `Polly.Joanna`. F and M show the voice's gender.

| Language code | Voices |
| - | - |
| `arb` | Zeina (F) |
| `cmn-CN` | Zhiyu (F) |
| `cy-GB` | Gwyneth (F) |
| `da-DK` | Mads (M), Naja (F) |
| `de-DE` | Hans (M), Marlene (F), Vicki (F) |
| `en-AU` | Nicole (F), Russell (M) |
| `en-GB` | Amy (F), Brian (M), Emma (F) |
| `en-GB-WLS` | Geraint (M) |
| `en-IN` | Aditi (F), Raveena (F) |
| `en-US` | Ivy (F), Joanna (F), Joey (M), Justin (M), Kendra (F), Kimberly (F), Matthew (M), Salli (F) |
| `es-ES` | Conchita (F), Enrique (M), Lucia (F) |
| `es-MX` | Mia (F) |
| `es-US` | Lupe (F), Miguel (M), Penelope (F) |
| `fr-CA` | Chantal (F) |
| `fr-FR` | Celine (F), Lea (F), Mathieu (M) |
| `is-IS` | Dora (F), Karl (M) |
| `it-IT` | Bianca (F), Carla (F), Giorgio (M) |
| `ja-JP` | Mizuki (F), Takumi (M) |
| `ko-KR` | Seoyeon (F) |
| `nb-NO` | Liv (F) |
| `nl-NL` | Lotte (F), Ruben (M) |
| `pl-PL` | Ewa (F), Jacek (M), Jan (M), Maja (F) |
| `pt-BR` | Camila (F), Ricardo (M), Vitoria (F) |
| `pt-PT` | Cristiano (M), Ines (F) |
| `ro-RO` | Carmen (F) |
| `ru-RU` | Maxim (M), Tatyana (F) |
| `sv-SE` | Astrid (F) |
| `tr-TR` | Filiz (F) |

Use these names exactly as listed.

## Supported SSML tags

| Tags | Notes |
| - | - |
| `break`, `emphasis`, `lang`, `mark`, `p`, `phoneme`, `s`, `sub`, `w` | Supported |
| `prosody` | Supports `rate`, `pitch`, and `volume` |
| `say-as` | Supports values such as `digits` and `spell-out` |

Send your content without a `<speak>` tag. Vobiz adds it for you.

## SSML limits

| Limit | Value |
| - | - |
| Spoken text | 3,000 characters |
| SSML document | 6,000 characters, including tags |
| `break` | Up to 10 seconds |
| `prosody rate` | -80% or higher |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.