Can I interrupt and clear buffered audio?

Use the clearAudio event to interrupt or clear buffered audio previously sent to Plivo via the playAudio event. Plivo clears all buffered media events, enabling you to initiate new playAudio events tailored to a specific use case.

Transmit the clearAudio event using the format outlined below. Use the same WebSocket connection with the steamId to interrupt the audio.

Sample Request


  "event": "clearAudio",

  "streamId": "b77e037d-4119-44b5-902d-25826b654539"




  "sequenceNumber": 0,

  "event": "clearedAudio",

  "streamId": "20170ada-f610-433b-8758-c02a2aab3662"

Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket