how can i record the session?
# ask-ai
k
how can i record the session?
t
Thanks for reaching out, Jex. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can record a session in LiveKit using several methods, depending on your requirements: • Egress (Server-Side Recording): This is the primary method, supporting recording of the entire room (Room Composite Recording), individual participants, or specific tracks. Files are uploaded to a cloud storage provider (Amazon S3, Google Cloud Storage, Azure Blob Storage). Customize output format, quality, and layout. • Text Transcript Recording: Capture real-time conversation transcripts through conversation events or the session history. • Local Recording (Client-Side): Use LiveKit SDKs on JavaScript, Android, or iOS for local media recording directly in your application. For most use cases, Room Composite Egress is recommended to capture the full room experience automatically. To set this up, configure your preferred cloud storage and invoke the relevant LiveKit API with your desired layout, encoding, and storage settings. For very customized workflows (e.g., recording only specific users or using your own UI), you can use track-specific egress or custom templates. Local recording is also an option for client-only scenarios. If you need setup examples or details for a particular approach, please clarify your preferred recording method or your platform: • Server-side (egress to cloud storage)? • Client-side (local media files)? • Transcript-only? This will help guide you to the most relevant documentation and code examples. Sources: Recording Participants | LiveKit Docs | src/room/track/record.ts | sample-app-record-local/src/main/java/io/livekit/android/sample/record/Main... | Tests/LiveKitTests/AudioMixRecorderTests.swift | Recording agent sessions | LiveKit Docs | Custom Recording Template | LiveKit Docs | Session recording and transcripts | LiveKit Docs
k
does session history capture the function calls too? or only the chat messages
t
Hey there! Let me break down how LiveKit's session history works in a super friendly way. It's awesome because it captures both chat messages and function calls - so you get a complete picture of what's happening. Every single function call (with its arguments and results) gets neatly stored in order right alongside your chat messages. The best part? You can easily access and export the whole history using the
session.history
property. Think of it like a detailed journal of your entire conversation. Pretty cool, right? Sources: .github/next-release/changeset-a19302fd.md | Events and error handling | LiveKit Docs | Agents 0.x migration guide | LiveKit Docs