> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# audioEnded

> The audioEnded event fires when the SDK stops audio playback during a Click To Call session.

Emitted when the SDK stops audio playback. This happens when the call ends or fails, when you call `disconnect()` or `destroy()`, and when the audio element finishes playback. The event can be emitted more than once, and it's emitted before the [`ended`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/ended) or [`failed`](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/failed) event.

## Category

Audio

## Callback Parameters

None.

## Example

```typescript theme={null}
client.on('audioEnded', () => {
  console.log('Remote audio playback has stopped');
});
```

## More Information

* [captureAudio](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/capture-audio.md)
* [ended](https://docs-classic.cognigy.com/click-to-call/sdk/event-reference/ended.md)
* [Custom Audio Handling](https://docs-classic.cognigy.com/click-to-call/sdk/custom-audio.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.