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}]
Supported Formats
We support standard
.mp3 and .wav formats. For optimal quality and reduced latency, we recommend 8kHz, 16-bit mono WAV files.Accessibility
Ensure that your
url endpoint returns the correct Content-Type headers (e.g., audio/mpeg for MP3) and is publicly accessible.