Sendexa LogoDocs

Play Audio

Stream pre-recorded audio files directly into an active voice call.

Play Pre-recorded Audio

Play standard MP3 or WAV files over the phone.

Hold Music

Provide a seamless experience with custom hold music.

Using Play in Call Instructions

Use the Play action in your JSON instruction payload to play an audio file to the caller.

Basic Audio Playback

JSON
[
{
"action": "Play",
"url": "https://api.myapp.com/audio/welcome.mp3",
"loop": 1
}
]

Looping Hold Music

Set loop: 0 to loop the audio indefinitely until the call is hung up or the next instruction takes over.

JSON
[
{
"action": "Play",
"url": "https://api.myapp.com/audio/hold-music.mp3",
"loop": 0
}
]