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

# realtime.response.audio.done

> Audio generation completed

Triggered when the AI has finished generating all audio for the response. Handle this event to reset audio playback flags and prepare for the next user interaction.

## Event Properties

<ResponseField name="type" type="string">
  Event type. Always `"realtime.response.audio.done"` for this event.
</ResponseField>

<ResponseField name="data" type="object">
  Event data object. May be empty or contain additional metadata.
</ResponseField>

<ResponseExample>
  ```json Example theme={null}
  {
    "type": "realtime.response.audio.done",
    "data": {}
  }
  ```
</ResponseExample>

## Usage Example

```javascript theme={null}
const NavTalkMessageType = Object.freeze({
    REALTIME_RESPONSE_AUDIO_DONE: "realtime.response.audio.done",
    // ... other event types
});

async function handleReceivedMessage(data) {
    switch (data.type) {
        case NavTalkMessageType.REALTIME_RESPONSE_AUDIO_DONE:
            console.log("Audio response complete.");
            isPlaying = false;
            playVideo = false;
            break;
    }
}
```

<Note>
  After this event, the AI response is complete and the system is ready for the next user interaction.
</Note>
