Call Commands
Speak text
Convert text to speech and play it back on the call. If multiple speak text commands are issued consecutively, the audio files will be placed in a queue awaiting playback.
Expected Webhooks:
- call.speak.started
- call.speak.ended
post/calls/{call_control_id}/actions/speak
Path parameters
call_control_idstring required
Unique identifier and token for controlling the call
Request body
Example request
{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901",
"language": "arb",
"payload": "Say this on the call",
"payload_type": "text",
"service_level": "basic",
"stop": "current",
"voice": "female"
}Response
Successful response upon making a call control command.
Example response
{
"data": {
"result": "ok"
}
}