faint-gold-41196
10/18/2025, 4:52 AMtall-airline-16756
10/18/2025, 4:52 AMtall-airline-16756
10/18/2025, 4:53 AMfaint-gold-41196
10/18/2025, 4:59 AMtall-airline-16756
10/18/2025, 5:00 AMstorage:
s3:
access_key: AWS_ACCESS_KEY_ID
secret: AWS_SECRET_ACCESS_KEY
region: AWS_DEFAULT_REGION
bucket: your-audio-bucket
1. Set Audio-Only Recording: Use the API to specify that you want audio-only recording. Here’s a handy example:
req = api.RoomCompositeEgressRequest(
room_name="my-room",
audio_only=True,
segment_outputs=[api.SegmentedFileOutput(
filename_prefix="audio-recording",
gcp=api.GCPUpload(
credentials=file_contents,
bucket="my-audio-bucket",
),
)],
)
1. Start Recording: Simply use the LiveKit API to kick off the egress process.
lkapi = api.LiveKitAPI()
res = await lkapi.egress.start_room_composite_egress(req)
Costs to Keep in Mind:
• Transcoding Minutes: $0.005 per minute for audio-only recordings after your included minutes (Starter: 60, Pro: 600, Enterprise: 8,000).
• Track Egress: $0.001 per minute for raw single stream audio exports.
• Storage Costs: These are separate and depend on your cloud provider.
Track Egress tends to be the most budget-friendly if you’re looking for simple audio recordings. If you have any questions or need a hand with anything else, just let me know—I’m here to help!
Sources: Recording and export | LiveKit Docs | egress/recording_agent.py | livekit-api/livekit/api/egress_service.py | LiveKit Pricing | pkg/config/service.go