glamorous-oil-12326
10/27/2025, 5:09 PMtall-airline-16756
10/27/2025, 5:09 PMtall-airline-16756
10/27/2025, 5:10 PMauto_egress is enabled! A really helpful feature for this is the dual-channel audio mixing. It works by placing the agent's audio in the left channel and all other sounds, like background audio, in the right channel.
To get this up and running, you just need to set the audio_mixing parameter to DUAL_CHANNEL_AGENT in your egress request. Here’s a quick example:
audio_mixing: DUAL_CHANNEL_AGENT
This way, your recordings will have a nice, clear separation between the agent’s voice and any background sounds, which can make things much easier when you’re processing the calls afterward.
Sources: examples/voice_agents/background_audio.py | Agent speech and audio | LiveKit Docs | src/main/kotlin/io/livekit/server/EgressServiceClient.kt | livekit-protocol/src/livekit.rs | test/edge.goglamorous-oil-12326
10/27/2025, 5:18 PMtall-airline-16756
10/27/2025, 5:19 PMglamorous-oil-12326
10/27/2025, 5:20 PMtall-airline-16756
10/27/2025, 5:21 PM{track_id} or {publisher_identity}. This makes it easier to see which participant or source each exported audio file belongs to.
If you'd like to process each audio source independently, I recommend trying Track Egress. This feature lets you export each audio track separately as an .ogg file. You can get the list of active tracks using the ListParticipants API, filter for audio tracks, and then start a Track Egress request for each track using its track_id.
Feel free to reach out if you'd like more details or examples on how to set this up—I’m here to help!
Sources: Universal Egress | README.md | Universal Egress | packages/livekit-server-sdk/src/EgressClient.ts | Egress examples | LiveKit Docsglamorous-oil-12326
10/27/2025, 5:42 PMtall-airline-16756
10/27/2025, 5:43 PMglamorous-oil-12326
10/27/2025, 5:51 PMtall-airline-16756
10/27/2025, 5:51 PM