Play audio URL
Play an audio file on the call. If multiple play audio commands are issued consecutively, the audio files will be placed in a queue awaiting playback.
Notes:
- When overlay is enabled, target_legs is limited to self.
- A customer cannot Play Audio with overlay=true unless there is a Play Audio with overlay=false actively playing.
Expected Webhooks:
- call.playback.started
- call.playback.ended
Path parameters
Unique identifier and token for controlling the call
Request body
Example request
{
"audio_url": "http://www.example.com/sounds/greeting.wav",
"loop": "infinity",
"overlay": true,
"stop": "current",
"target_legs": "self",
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
"command_id": "891510ac-f3e4-11e8-af5b-de00688a4901"
}Response
Successful response upon making a call control command.
Example response
{
"data": {
"result": "ok"
}
}Changes
Changed in 2 of the 99 revisions of this API.7
- ▲
the response's body type changed from
objectto no type for statusresponse-body-type-changed
- ▲
the
/response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
the
//response's property type changed fromintegertostring, and format fromint32tointegerfor statusresponse-property-type-changed
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type changed from no type to
objectfor statusresponse-body-type-changed
- ▲
the
/response's property type changed from no type toobjectfor statusresponse-property-type-changed
- ▲
the
//response's property type changed fromstringtointeger, and format fromintegertoint32for statusresponse-property-type-changed
- ▲
the
///response's property format changed fromjson-pointerto no format for statusresponse-property-type-changed
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 99 revisions, 1 has no diff computed.