The <Play> element plays an audio file back to the caller. Plivo allows
playback from the local filesystem (.mp3, .wav, etc) or from a remote URL (Currently, only .mp3 files are supported for remote playback.)

Element Attributes

The <Play> verb supports the following attributes that modify its behavior:

Attribute Name Allowed Values Default Value
loop integer >= 0 1

Examples

Example 1: Simple Play

This RESTXML document tells Plivo to download the ivr-hello.wav file and play the audio to the caller.

1
2
3
4
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
    <Play>/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-hello.wav</Play>
</Response>

Comments are closed.