Skip to main content

Play Music

The play action will play the audio file to the caller, by greeting the caller with specific pre-recorded music or playing the music while the caller is on hold. PIOPIY supports both mp3 and wav file formats.

To play an audio file during the call using Curl:

Play action JSON

[
{
action: "play",
file_name: "welcome_11112.mp3",
}
]

Parameters type and description

ParameterTypeDescription
*actionstringThe PCMO action to control the flow of the call.
*file_name (or) file_urlstringThe file_name will play the audio file from TeleCMI cloud CDN, and the file_url will play the audio file from your own cloud CDN.
Note
All above parameters are mandatory.