US English (US)
GB English (UK)

By Appointment to
His Majesty The King
Contact Centre Service Software
Cirrus Response Ltd
Epsom

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Cirrus eLearning
  • Contact Us
English (UK)
US English (US)
GB English (UK)
  • Home
  • Cirrus Connect
  • Administrator
  • Settings

Advanced TTS with Google SSML

Written by Keith Winhall

Updated at July 21st, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Cirrus Connect
    Agent Supervisor Administrator
  • Cirrus Digital
    Agents Supervisors Administrators API Documentation
  • Release Notes
    Release FAQs Latest Release 2025 2024 2023
  • Customer Billing
+ More

Table of Contents

1. Pause and pacing control with 2. Emphasis with 3. Pronunciation control with 4. Multifaceted voice tuning: 5. Switching languages mid-prompt via 6. Voice styles: 7. Timestamped markers: 8. Voice switching (advanced use) Implementation Tips Sample Enhanced Prompt

Admins can use SSML — a lightweight markup language — to enhance prompt voice output. Here's how you can leverage SSML tags to add richness and control:

1. Pause and pacing control with <break>

Short pause: <break time="500ms"/>

Longer pause: <break time="2s"/>

Useful for emphasising sections:

<speak>Your case is currently on hold.<break time="1s"/> Thank you for waiting.</speak>

2. Emphasis with <emphasis>

Adjust emphasis level: "strong", "moderate", "reduced"

<emphasis level="strong">Important notice:</emphasis> please read carefully.

3. Pronunciation control with <say-as>

Format numbers, dates, times, and acronyms:

<say-as interpret-as="characters">FAQ</say-as>,
<say-as interpret-as="digits">1234</say-as>,
<say-as interpret-as="ordinal">3</say-as>,
<say-as interpret-as="date" format="yyyy-MM-dd">2025-07-21</say-as>

4. Multifaceted voice tuning: <prosody>

Modify speed, pitch, or volume to suit context:

<prosody rate="slow">This will take approximately 30 seconds.</prosody>
<prosody pitch="+2st">Higher pitch here.</prosody>

5. Switching languages mid-prompt via <lang>

Useful for multilingual use:

See instructions in English, or <lang xml:lang="fr-FR">cliquez ici</lang> for French.

6. Voice styles: <google:style>

Available in active voice families like en-US-Neural2-F/J to convey tone by style:

Options: empathetic, lively, calm, firm, apologetic

<google:style name="empathetic">
  Thank you for your patience.
</google:style>

7. Timestamped markers: <mark>

Place markers to sync call events or UI highlights:

<speak>Hello,<mark name="start"/> your session begins now.</speak>

Enable timepointType=SSML_MARK in requests to receive timing offsets

8. Voice switching (advanced use)

Use <voice> to switch voices mid-prompt, but ensure voices are compatible with selected VoiceSelectionParams

<speak>
  <voice language="en-GB" gender="male" required="language">Hello, this is UK male voice.</voice>
  Now back to the default voice.
</speak>

Implementation Tips

  1. Always wrap SSML within <speak> … </speak>.
  2. Escape special characters like & (&amp;), < (&lt;) to avoid parse errors
  3. Test in staging: validate output in UI tool or console to ensure correct playback.
  4. Balance enhancement vs brevity: use voice/style only when it improves clarity—avoid overuse.

Sample Enhanced Prompt

<speak>
  <emphasis level="moderate">Agent alert:</emphasis>
  <prosody rate="slow">
    You have a new ticket <say-as interpret-as="digits">2345</say-as>.
  </prosody>
  <break time="800ms"/>
  <google:style name="firm">
    Please respond within <say-as interpret-as="duration" format="h:m">0:15</say-as>.
  </google:style>
  <mark name="agentPrompt"/>
</speak>

Explanation:

  • Highlights urgency with emphasis
  • Slows down delivery for the ticket number
  • Adds pause
  • Uses a firm style for clear instruction
  • Inserts a marker for UI sync

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Mailbox profiles
  • Prompts
  • Text-to-Speech Options
  • Public Holidays
  • Qualifiers

Cirrus
Office 126
63 St Mary Axe
London, EC3A 8AA
Tel: 0333 103 3333
Email: cm@cirrusconnects.com

Social: twitter linkedin

Privacy Policy

Postal address
Cirrus
PO Box 708
Epsom, KT17 9RA
Tel: 0333 103 3333
Email: support@cirrusconnects.com

© Copyright Cirrus


Knowledge Base Software powered by Helpjuice

Expand