The PlayAudio verb is used to play an audio file in the call.
.mp3 files are supported.
<PlayAudio> is the last verb in the BXML, the call shall be disconnected after 30 seconds. Use Redirect verb to send the next BXML if the call needs to continue or Hangup to hangup the call immediately.
|volume||(optional) Integer between -4 and 4 that specifies how loud the audio is. Default is 0.|
|Callback||Can reply with more BXML|
Example: PlayAudio Verb
This shows how to use Bandwidth XML to play an audio clip into a phone call.
"1.0" encoding="UTF-8" xml version=<Response> <PlayAudio volume="4">https://audio.url/holdMusic.mp3</PlayAudio> <PlayAudio volume="-4">https://audio.url/voicemailBeep.wav</PlayAudio> </Response>