straight-jelly-92105
11/01/2025, 5:09 PMtall-airline-16756
11/01/2025, 5:09 PMtall-airline-16756
11/01/2025, 5:10 PMRoomCompositeEgressRequest with the audio_only parameter set to true. This way, only the audio will be recorded, and video will be excluded. Here's a simple example to guide you:
recording_request = api.RoomCompositeEgressRequest(
room_name=room_id,
audio_only=True,
file=api.EncodedFileOutput(
file_type=api.EncodedFileType.MP3, # You can also use MP4 or other supported formats
filepath=recording_path
)
)
Just be sure to swap out file_type for whatever format suits your needs (like MP3 for audio-only). This setup will capture all the audio tracks in your room and save them exactly where you want.
If you have any questions or need a hand with this, please don’t hesitate to reach out—I’m here to help!
Sources: src/audio/MediaRecorder.ts | livekit-agents/livekit/agents/voice/recorder_io/recorder_io.py | examples/local_audio/README.md | Sources/LiveKit/Audio/Manager/AudioManager.swift | livekit-api/livekit/api/egress_service.py