Say Text-To-Speech (TTS)
Use this request in order to say
a text message during a call, this API uses our Text-To-Speech service to convert the provided text into an audio, you can configure the text, language, voice nature and if you want the message to repeat.
Command for say text to call
Say TTS into a channel call
post
/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/say
Authorizations
Path parameters
workspaceIdstring · uuidrequired
The ID of the workspace
callIdstring · uuidrequired
The ID for a call
channelIdstring · uuidrequired
The ID for a channel
Body
textstringrequired
voicestring
loopinteger
timeoutinteger
localestring · enum · default: en-US
Example:
en-US
Options:
arb
, ar-AE
, bg-BG
, bn-IN
, ca-ES
, cs-CZ
, cy-GB
, cmn-CN
, da-DK
, de-CH
, de-DE
, de-AT
, el-GR
, en-AU
, en-GB
, en-IN
, en-NZ
, en-ZA
, en-US
, en-GB-WLS
, es-ES
, es-MX
, es-US
, eu-ES
, fi-FI
, fil-PH
, fr-FR
, fr-BE
, fr-CA
, gl-ES
, gu-IN
, he-IL
, hi-IN
, hu-HU
, id-ID
, is-IS
, it-IT
, ja-JP
, ko-KR
, lt-LT
, lv-LV
, ms-MY
, nl-BE
, nl-NL
, nb-NO
, pa-IN
, pl-PL
, pt-BR
, pt-PT
, ro-RO
, ru-RU
, sk-SK
, sr-RS
, sv-SE
, ta-IN
, te-IN
, tr-TR
, th-TH
, uk-UA
, vi-VN
, yue-CN
Responses
application/json
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
202
400
404
422
Example 1: Play an announcement when an outbound call is running
Last updated
Was this helpful?