is there a way to start audio recording using star...
# ask-ai
t
is there a way to start audio recording using start_room_composite_egress when the call is already in progress, or vice versa stop it later in the call when user has requested so?
t
Thanks for reaching out, Aivis. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! You can start audio recording using
start_room_composite_egress
even while a call is ongoing. And whenever you or the user wants to stop the recording, you can easily do that later during the call. To get the recording going during a call, just trigger the
start_room_composite_egress
operation dynamically. When it’s time to stop, you can use the
stop_egress
method or API call, which lets you end the active recording session without affecting the call itself. If you'd like, I’m here to help with more details or examples on how to set this up—just let me know! Sources: livekit-api/livekit/api/egress_service.py | RoomComposite Egress | LiveKit Docs | protobufs/livekit_egress.proto | autocomplete/fish_autocomplete | Egress examples | LiveKit docs