Record conversations with Cloud Recording
This guide explains how to configure Agora Cloud Recording to work with conversational AI agents and avoid audio scene conflicts.
Audio scene conflict
When you use conversational AI agents and Cloud Recording in the same channel, an audio scene conflict can cause a brief audio interruption when recording starts. This happens because the agent's audio scene reverts to default mode when a user joins the channel during Cloud Recording.
To avoid this issue, set the agent's audio_scenario parameter to "chorus" to ensure stable audio processing with Cloud Recording.
Configure the agent
Add or modify the audio_scenario field in the agent startup parameters:
Complete configuration example
The following example shows a complete agent launch request with the optimized configuration:
Start Cloud Recording
After starting the agent, start Cloud Recording by calling the Start Cloud Recording API.
The following example shows a complete Cloud Recording start request body: