rough-addition-41764
12/10/2025, 4:50 PMtall-airline-16756
12/10/2025, 4:50 PMtall-airline-16756
12/10/2025, 4:50 PMrough-addition-41764
12/10/2025, 4:58 PMtoken = (
livekit_api.AccessToken(api_key=config.LIVEKIT_API_KEY, api_secret=config.LIVEKIT_API_SECRET)
.with_identity(candidate_email)
.with_room_config(egress=livekit_api.RoomEgress(
room=livekit_api.RoomCompositeEgressRequest()
# participant=??? What should this be?
))
)
I do not see any fields in the AutoParticipantEgress config that specify what participant to recordtall-airline-16756
12/10/2025, 4:58 PMfrom livekit.api import ParticipantEgressRequest
info = await lkapi.egress.start_participant_egress(
ParticipantEgressRequest(
room_name="my-room",
identity="participant-to-record",
# add Output (file/S3) and other options here
)
)
If you prefer auto-start behavior for room/track composites, keep that in the token; for selective participant recording, start Participant Egress from your backend when you want the individual recording to begin. Do you want the exact request fields for file vs S3 output or help wiring this into your existing backend call?
Sources: Auto egress | LiveKit docs | Egress examples | LiveKit docsrough-addition-41764
12/10/2025, 5:06 PMtall-airline-16756
12/10/2025, 5:07 PMfile_outputs with stream_outputs, segment_outputs, or image_outputs as needed.
• Set audio_only or video_only to true if you want only one media type.
Would you like the same example using a different output (GCP/Azure) or with audio_only / video_only enabled?
Sources: Egress API | LiveKit docs | Recording participants | LiveKit docs | Egress output types | LiveKit docsrough-addition-41764
12/10/2025, 5:11 PMtall-airline-16756
12/10/2025, 5:11 PMaudio_only: true (or video_only: true as needed) in the Participant Egress request. Example JSON body for a TWIRP StartParticipantEgress call:
POST https://<your-livekit-host>/twirp/livekit.Egress/StartParticipantEgress Authorization: Bearer <YOUR_ACCESS_TOKEN> Content-Type: application/json
{ "room_name": "my-room", "identity": "human-identity", "audio_only": true, "file_outputs": [ { "filepath": "recordings/my-room/human-identity-audio.mp4", "s3": { /* your S3 config */ } } ] }
• Implementation notes:
◦ The backend must call StartParticipantEgress (you cannot configure this per-participant via the access token).
◦ The egress will wait for that participant to join and publish before recording.
◦ Run this alongside your Room Composite Egress; they do not conflict.
Would you like a concrete TWIRP example with your expected S3 fields or the exact Python/RPC client code to call StartParticipantEgress?
Sources: Auto egress | LiveKit docs | Recording participants | LiveKit docs | How to set a fixed participant for agent audio processing