how can i start recording the call and upload it t...
# ask-ai
n
how can i start recording the call and upload it to google cloud after the call is over?
t
Thanks for reaching out, Hwuiwon. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! If you want to record a call and have it uploaded to Google Cloud right after it ends, LiveKit’s Egress feature with the
file_outputs
option is a great way to go. This makes sure your entire recording gets saved as one file once the session wraps up. Here’s how you can do it: 1. First, set up a Google Cloud service account and grab the credentials JSON file for authentication. 2. Then, use the LiveKit API to set up a
RoomCompositeEgressRequest
with
file_outputs
. Don’t forget to specify the file type (like MP4) and your Google Cloud Storage bucket details. 3. Start recording when the call kicks off and stop it when the call ends. After that, the file will automatically upload to your Google Cloud Storage. If you want me to share some code examples or if you have any questions, just give me a shout—I’m here to help! Sources: Recording agent sessions | LiveKit Docs | Session recording and transcripts | LiveKit Docs