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.
|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>https://audio.url/holdMusic.mp3</PlayAudio> <PlayAudio>https://audio.url/voicemailBeep.wav</PlayAudio> </Response>