Skip to main content

Speech Synthesis Markup Language (SSML)

Hamsa supports SSML tags to give you fine-grained control over speech generation.

Supported Tags

<break>

Inserts a pause in the speech.
<speak>
  Hello <break time="1s"/> world.
</speak>

<prosody>

Controls the speech rate, pitch, and volume.
<speak>
  <prosody rate="slow">Speaking slowly.</prosody>
  <prosody pitch="+50%">Higher pitch.</prosody>
</speak>

<say-as>

Specifies how text should be interpreted (dates, numbers, etc.).
<speak>
  <say-as interpret-as="date" format="mdy">12/31/2025</say-as>
</speak>