Skip to main content
 
Field Guides

Why is there extra audio at the end of my recordings of an agent session?

Learn why LiveKit egress recordings of agent sessions have extra audio at the end, and how to prevent it by deleting the room or manually stopping egress when the human participant leaves.

Last Updated:

Troubleshooting

When using LiveKit egress to record agent sessions, you may notice additional audio at the end of your recordings. This occurs because the agent and egress participants remain in the room for a short period of time after the human participant leaves.

Potential solutions

To avoid extra audio in your recordings, you can do either:

  1. Delete the room when the human participant leaves the room. This will cause the egress participant to leave and stop the recording.

  2. Manually stop egress. Use the LiveKit API to explicitly stop the egress recording when the call ends.

Recommended: It is recommended that you delete the room when the call ends. This ensures a clean teardown of all participants and automatically stops any active egress recordings.