Plivo home pagelight logodark logo
  • Support
  • Log in
  • Request Trial
Messaging API
Voice API
Verify API
Phone Numbers
Account API
Other APIs
  • Getting Started
  • Voice Concepts
  • AI Voice Agents (New)
  • Use Case Guides
  • API Reference
  • XML Reference
  • Client SDKs
  • Call Insights
  • Audio Streaming
  • Troubleshooting
  • Overview
    • Overview
    • How it works
    • Controlling outbound calls
    Request
    • Overview
    • SIP headers
    • Validation
    • Call status
    • Event
    Response
    • Overview
    • How to structure you XML document
    MultiPartyCall
    • Overview
    Conference
    • Overview
    • Basic conference
    • Moderated conference
    • Join a conference muted
    • Bridge incoming calls
    • Waiting room
    • Conference with redirect
    • Using callback URL
    AudioStream
    • Overview
    • Initiate an audio stream
    • Stream events to Plivo
    Dial
    • Overview
    • Dial status reporting
    • Custom caller tone
    • Confirm to answer call
    • Sequential dialing
    • Simultaneous dialing
    • Number
    • User
    DTMF
    • Overview
    • Send digits
    GetDigits
    • Overview
    • Phone tree
    GetInput
    • Overview
    • Detecting speech inputs
    • Supported languages
    • Pricing for speech recognition
    Hang up
    • Overview
    • Hang up after a minute
    Play
    • Overview
    • Play music
    PreAnswer
    • Overview
    • Notify callers
    Record
    • Overview
    • Record a voice mail message
    • Record complete session
    Redirect
    • Overview
    • Tranfer a call
    Speak
    • Overview
    • Play a message
    • Play in a loop
    • SSML
    Wait
    • Overview
    • Basic wait
    • Beep detection
    • Delayed call answer
    • Machine detection
    Play

    The Play element

    You can use the Play element to play an audio file from a remote URL to a caller. Plivo supports MP3 and WAV audio file formats.

    Attributes

    loop
    integer
    The number of times to play the audio file repeatedly. If you set the value to 0, the file will play indefinitely.

    Allowed values: integer >= 0
    Defaults to 1.
    Hang up after a minutePlay music
    xgithublinkedinfacebook
    Assistant
    Responses are generated using AI and may contain mistakes.