To record a call with an agent on Google Cloud using LiveKit, you can utilize the Egress feature. This allows you to record audio and video tracks of participants in a LiveKit room. You can configure the Egress to store recordings directly to Google Cloud Storage.
1.
Set Up Egress: Use LiveKit's Egress API to start recording the participant's audio. You can specify Google Cloud Storage as the output destination. Refer to the
Egress output types and
Google Cloud Storage documentation for configuration details.
2.
Implement Recording: Use the LiveKit Server SDK to initiate the recording process. You can use the
ParticipantEgressRequest
to specify the participant's identity and the output configuration for Google Cloud Storage.
Would you like more detailed steps or a code example?
Sources:
-
https://livekit-users.slack.com/archives/C07FVFARRK7/p1728711710.058359
-
https://livekit-users.slack.com/archives/C07FVFARRK7/p1730759958.958929 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.