---
title: "SSML"
description: "With Speech Synthesis Markup Language (SSML) you can enhance your TTS prompts. For example, you can include pause within a prompt or change the speech rate or pitch."
canonical: "https://docs.cm.com/voice/voice-api/ssml"
---

# SSML

> With Speech Synthesis Markup Language (SSML) you can enhance your TTS prompts. For example, you can include pause within a prompt or change the speech rate or pitch.

Source: https://docs.cm.com/voice/voice-api/ssml

With Speech Synthesis Markup Language (SSML) you can enhance your TTS prompts. For example, you can include pause within a prompt or change the speech rate or pitch.

## Example

```json
{
    "prompt": "<speak>Hi! I will wait for 2 seconds. <break time='2s'/> Now I will spell the word hello: <break time='1s'/> <say-as interpret-as='characters'>hello</say-as>. <prosody rate='-50%' pitch='-25%' volume='+2dB'>I am speaking a bit loudly, slowly and with a lower pitch.</prosody></speak>"
}
```

## Attributes

| Type | Description | Parameters | Values |
| - | - | - | - |
| \<speak> | The root where the SSML start. Required in order to use SSML. | -- | -- |
| \<break> | Adds a pause between words. | **time** <br /> time in milliseconds (ms) or seconds(s) | N**s** or N**ms** <br /><br />Maximum total duration is 10 seconds per API call. |
| \<say-as> | Control how special types of words are spoken. | **interpret-as** <br /> Determines how to say certain characters, words, numbers | cardinal, characters, ordinal, fraction, unit, date, time, expletive |
| \<prosody> | Control the volume, speaking rate and the pitch | **rate** <br /> Determines how fast or slow the text should be spoken. <br /><br /> **pitch** <br /> Determines the pitch of the voice. <br /><br /> **volume** <br />Change the volume for the text. | **rate** <br /> +/- n% <br /><br /> **pitch** <br /> +/- N\*\*%\*\* <br /><br /> **volume** <br /> +/- N**dB** |
| \<emphasis> | Emphasize words. | **level** <br /> Specify the degree of emphasis | strong, moderate, reduced |

More advanced information about SSML and the attributes can be found in the [W3C SSML Specification](https://www.w3.org/TR/speech-synthesis11/).
