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.
event |
Indicates the event type. Use clearAudio to clear all the buffered audio. |
streamId |
A unique identifier generated for each audio stream. |
{
"event": "clearAudio",
"streamId": "b77e037d-4119-44b5-902d-25826b654539"
}
{
"sequenceNumber": 0,
"event": "clearedAudio",
"streamId": "20170ada-f610-433b-8758-c02a2aab3662"
}