Latest Legacy

Clear audio stream

The clearAudio event interrupts 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.

You can send a clearAudio event to interrupt the audio that has been sent to Plivo. This will clear all the buffered audio.

Attributes

event

Indicates the event type. Use clearAudio to clear all the buffered audio.

 
streamId

A unique identifier generated for each audio stream.

Response

Request

{
  "event": "clearAudio",
  "streamId": "b77e037d-4119-44b5-902d-25826b654539"
}

Response

{
  "sequenceNumber": 0,
  "event": "clearedAudio",
  "streamId": "20170ada-f610-433b-8758-c02a2aab3662"
}