When your intended audio is dispatched using the playAudio event, you can transmit the checkpoint event through a WebSocket. Plivo will generate a 'played' event in response once the preceding media events leading up to the checkpoint event have been successfully played back to the end user.
Request
{
"event": "checkpoint",
"streamId": "20170ada-f610-433b-8758-c02a2aab3662",
"name": "customer greeting audio"
}
Response
{
"event": "played",
"streamId": "20170ada-f610-433b-8758-c02a2aab3662",
"name": "customer greeting audio"
}