I have deployed my livekit agent on livekit cloud ...
# ask-ai
d
I have deployed my livekit agent on livekit cloud and i want to record the calls, how do i record them and access it?
t
Thanks for reaching out, Harsha. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you want to record calls in LiveKit Cloud, the Egress feature is your go-to! It lets you capture audio and/or video from a room and save those recordings right to your favorite cloud storage provider. Here’s how you can get started with recording: 1. Start Recording: Use the Egress service to begin. You’ve got a few options here: Room Composite Egress (which records everyone in one video), Participant Egress (records individual participants), or Track Egress (records a single track). 2. Set Up Cloud Storage: Connect a cloud storage provider like Amazon S3, Google Cloud Storage, or Azure Blob Storage to keep your recordings safe. Just provide your authentication details and specify the bucket name when you make the egress request. 3. Kick Off Recording via API or SDK: Use the LiveKit Server SDK or REST API to start recording. For example, the
EgressClient.startRoomCompositeEgress()
method in the SDK does the trick. Getting Your Recordings: Once recorded, your files are automatically uploaded to your chosen cloud storage. You can grab them anytime using your storage provider’s tools or by checking the metadata from the Egress API, which includes the recording URL. If you’d like to dive deeper, check out the Egress Overview and the Composite Recording Guide. They’ve got all the details you need! Sources: Recording and composition | LiveKit Docs | Auto egress | LiveKit Docs | Recording agent sessions | LiveKit Docs | .env.example
d
I have deployed the agent using the livekit python agentsession and sip. how do i record it?
t
Hey there! Just want to make sure I understand—are you hoping to record the whole SIP session, each participant separately, or a combined recording of everyone? Also, do you have a favorite cloud storage service you'd like to use for saving the recordings?
d
how about digital ocean
t
Hey there! If you want to record calls and save them in DigitalOcean Spaces, you can easily set up LiveKit Egress to work with DigitalOcean as an S3-compatible storage provider. Here’s a simple way to get it done: Steps to Configure: 1. Set Up DigitalOcean Spaces: Grab your access key, secret key, and the endpoint URL for your Space (something like
<DIGITALOCEAN_ENDPOINT>
). 2. Configure Egress: Update your Egress settings with your DigitalOcean credentials and bucket info like this:
Copy code
storage:
  s3:
    access_key: your_digitalocean_access_key
    secret: your_digitalocean_secret_key
    endpoint: <DIGITALOCEAN_ENDPOINT>
    bucket: your-space-name
    region: <REGION>  # e.g., nyc3, sfo3
1. Start Recording: Use the LiveKit API or SDK to kick off recording. Your recordings will then be uploaded straight to your DigitalOcean Space. Some friendly tips: • Make sure the Egress service can reach the DigitalOcean endpoint over the network. • Double-check that your credentials have permission to write to the bucket. • It’s a good idea to set up a backup storage just in case something goes wrong with uploads. If you hit any bumps or want me to walk you through any part, just give me a shout—I’m here to help! Sources: pkg/config/storage.go | Kubernetes & Helm Charts | livekit/livekit_composite | DeepWiki | Egress & Storage | livekit/livekit_composite | DeepWiki | Egress & Recording | livekit/livekit_composite | DeepWiki