# 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

[block:parameters]
{
  "data": {
    "h-0": "Type",
    "h-1": "Description",
    "h-2": "Parameters",
    "h-3": "Values",
    "0-0": "<speak>",
    "0-1": "The root where the SSML start. Required in order to use SSML.",
    "0-2": "\\--",
    "0-3": "\\--",
    "1-0": "<break>",
    "1-1": "Adds a pause between words.",
    "1-2": "**time** <br> time in milliseconds (ms) or seconds(s)",
    "1-3": "N**s** or N**ms** <br><br>Maximum total duration is 10 seconds per API call.",
    "2-0": "<say-as>",
    "2-1": "Control how special types of words are spoken.",
    "2-2": "**interpret-as** <br> Determines how to say certain characters, words, numbers",
    "2-3": "cardinal, characters, ordinal, fraction, unit, date, time, expletive",
    "3-0": "<prosody>",
    "3-1": "Control the volume, speaking rate and the pitch",
    "3-2": "**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.",
    "3-3": "**rate** <br> +/- n% <br><br> **pitch** <br> +/- N**%** <br><br> **volume** <br> +/- N**dB**",
    "4-0": "<emphasis>",
    "4-1": "Emphasize words.",
    "4-2": "**level** <br> Specify the degree of emphasis",
    "4-3": "strong, moderate, reduced"
  },
  "cols": 4,
  "rows": 5,
  "align": [
    null,
    null,
    null,
    null
  ]
}
[/block]

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