say

The say command is used to send synthesized speech to the remote party. The text provided may be either plain text or may use SSML tags.

{
  "verb": "say",
  "text": "hi there!",
  "synthesizer" : {
    "vendor": "Google",
    "language": "en-US"
  }
}

You can use the following options in the say action:

option description required
text text to speak; may contain SSML tags yes
synthesizer.vendor speech vendor to use: Google or aws (polly is also an alias for aws) no
synthesizer.language language code to use. no
synthesizer.gender (Google only) MALE, FEMALE, or NEUTRAL. no
synthesizer.voice voice to use. Note that the voice list differs whether you are using aws or Google. Defaults to application setting, if provided. no
loop the number of times a text is to be repeated; 0 means repeat forever. Defaults to 1. no
earlyMedia if true and the call has not yet been answered, play the audio without answering call. Defaults to false no

Prev: redirect Next: sip:decline