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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| text | string | yes | — | Text to speak |
| voice | string | no | en-IN-Wavenet-A | Voice identifier |
| language | string | no | en-IN | BCP-47 language tag |
| loop | integer | no | 1 | Times to repeat (0=infinite) |
| engine | string | no | "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.