TryVox

Say

Convert text to speech on the call.

Say

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
textstringyesText to speak
voicestringnoen-IN-Wavenet-AVoice identifier
languagestringnoen-INBCP-47 language tag
loopintegerno1Times to repeat (0=infinite)
enginestringnogoogle"google" or "polly"

Looping

Set loop to repeat the text multiple times:

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

Set loop to 0 for infinite repetition (use with caution):

{
  "verb": "Say",
  "text": "All agents are busy. Please continue to hold.",
  "loop": 0
}

Supported Voices

The available voices depend on the engine parameter:

  • google: Google Cloud Text-to-Speech voices (Wavenet, Neural2, Studio)
  • polly: Amazon Polly voices (Standard, Neural)

Refer to the respective provider documentation for the full list of supported voice identifiers.

On this page