mysterious-agent-76276
09/19/2025, 9:22 AMtall-airline-16756
09/19/2025, 9:22 AMtall-airline-16756
09/19/2025, 9:22 AMmysterious-agent-76276
09/19/2025, 9:23 AMtall-airline-16756
09/19/2025, 9:23 AMmysterious-agent-76276
09/19/2025, 9:24 AMtall-airline-16756
09/19/2025, 9:25 AMLocalAudioTrackRecorder class to capture audio from a local track and save it as raw data (like PCM).
• Python SDK: Feel free to check out the local-audio-python example—you can modify it to save audio data locally using handy libraries like wave or pydub.
• Android SDK: The VideoFileRenderer is a great choice to record audio and save it as an MP4 file.
• Rust SDK: You might find the save_to_disk example useful for capturing and saving audio tracks as WAV files.
• Web/JS SDK: Using the LocalTrackRecorder class together with the browser's MediaRecorder API allows you to record and save audio locally with ease.
Each of these methods offers a way to record and store audio locally without depending on LiveKit's Egress service. If you'd like, I'm here to help with more details on any specific SDK or how to implement these—just let me know!
Sources: Tests/LiveKitTests/Audio/AudioManagerTests.swift | livekit-agents/livekit/agents/voice/recorder_io/recorder_io.py | sample-app-record-local/src/main/java/io/livekit/android/sample/record/Main... | examples/save_to_disk/src/main.rs | src/room/track/record.ts