Say

Generate text-to-speech audio.

1{
2 "verb": "say",
3 "text": "hi there!",
4 "synthesizer" : {
5 "vendor": "google",
6 "language": "en-US"
7 }
8}

Parameters

earlyMedia
boolean

If true and the call has not yet been answered, play the audio without answering the call.
Default: false.

loop
number

The number of times a text is to be repeated.
0 means repeat forever.
Default: 1.

stream
boolean

If set to true streaming text input is enabled.

synthesizer.gender
string

(Google only) MALE, FEMALE, or NEUTRAL.

synthesizer.language
string

Language code to use.

synthesizer.vendor
string

Speech vendor to use (see list below, along with any others added via the
custom speech API).

synthesizer.voice
string

Voice to use.
Note that the voice list differs depending on whether you are using AWS or Google.
Defaults to application setting, if provided.

text
string

Text to speak; may contain SSML tags.