Docs
<playAudio>
Plays an audio file which is downloaded from specified URL and played to the caller. For better performance, it is recommended to use the GET method when the <playAudio> command is present to make the audio file cacheable. MP3 and WAV file formats are supported.
Attribute | Description | Default Value |
---|---|---|
loops | The number of times the audio file is played to the caller. If the value is set to 0, the audio loops endlessly. | 1 |
EXAMPLE
The following Apifonica XML example instructs to play the specified audio file to the caller one time.
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<playAudio loops="1">http://myhost.com/audio.mp3</playAudio>
</response>