The <Play> element plays an audio file back to the caller. Plivo allows playback from a relative path inside your Basix storage folder (it can be in mp3 or wav format).

Element Attributes

Attribute name Description Allowed Values Default Value
loop number of times the file should be played integer between 1 and 5 1
terminators digits that will terminate (interrupt) audio output 0123456789*#
  • if the file to be played doesn't exist, call will terminate and error will be notified as Error="Cannot execute Play. File {{FILE}} doesn't exist"

Examples

Example 1: Simple Play

This XML document tells Plivo to play file hello.wav from your local storage.

<Response>
    <Play>plivo/hello.wav</Play>
</Response>