Skip to content

<Play>

Play an audio file, or send DTMF digits.

Plays the audio file at the URL in its text (MP3 or WAV; leading and trailing whitespace is trimmed). With the digits attribute it first sends those DTMF tones on the call, e.g. to drive a remote IVR; a <Play digits> with no URL only sends the tones. Answers the call first if it is not answered yet. Allowed inside <Gather> and in conference waitUrl/hold documents.

<Response>
<Play loop="2">https://example.com/audio/welcome.mp3</Play>
<Play digits="ww1234#"></Play>
</Response>
Attribute Values Default Description
loop How many times to play. See the verb for what 0 means 1 How many times to play the file. 0 plays it once (it does not loop forever).
digits DTMF digits 0-9, * and #; a lower-case w waits half a second — DTMF digits to send before playing: 0-9, *, # and w for a half-second wait. A value with any other character is ignored.