VoxML Reference

Say

Convert text to speech on the call.

The Say verb converts text to speech and plays it on the call.

Example

{
  "voxml_version": "1.0",
  "instructions": [
    {
      "verb": "Say",
      "text": "Welcome to TryVox. Please hold while we connect your call.",
      "voice": "en-US-Wavenet-D",
      "language": "en-US"
    }
  ]
}

Parameters

ParameterTypeRequiredDefaultDescription
textstringyes—Text to speak
voicestringnoPlatform default for the languageVoice identifier
languagestringnoen-INBCP-47 language tag
loopintegerno1Times to speak the text. 0 or omitted means once.
enginestringno—Accepted and ignored. The speech engine is chosen by the platform.

Looping

Set loop to repeat the text multiple times:

{
  "verb": "Say",
  "text": "Please wait",
  "loop": 3
}

There is no infinite loop: loop: 0 speaks the text once. Set a large loop value for a long hold message. A chain of Redirects can also repeat it, up to 20 redirects deep per call.

Voices

voice is passed to the platform's text-to-speech service. The engine field does not select a provider. If a voice isn't available, the platform default for language is used.

Using your own voice

You can replace the platform voice entirely with one from your own Sarvam AI account — see Your Own Speech Voice. It applies to every Say on the account automatically, so nothing in your VoxML changes; voice and engine still do not select a provider. Each account and each sub-account configures its own, with no inheritance.

On this page