Configure background sounds for calls

更新时间:
复制 MD 格式

Add background sounds to AI agent calls to create a more realistic and immersive experience for customers.

Introduction

Background sounds let you dynamically add preset ambient audio, such as cafe chatter, office noise, or street sounds, to calls between an AI agent and a customer.

This feature is suited for customer service, virtual social interactions, and remote interviews. It creates a natural call atmosphere without revealing the caller's actual environment, making the interaction feel more authentic.

Use cases

AI customer service: Enable an "office" or "call center" background sound during calls with an AI agent to simulate a real service environment and increase user trust.

Virtual social interactions: Use background sounds like "cafe" or "park" in virtual dating or companionship scenarios to enhance immersion.

Implementation

Step 1: Upload background sounds in the console

  1. Go to the AI Agents page, select an AI agent, and click Manage.

  2. Click the Advanced Configurations tab. In the Background Sounds section, you can find several official background sounds.

    These include conversation (ID: public_conversation), customer service (ID: public_customer_service), and outdoor park (ID: public_park). You can click Play audio to preview them.

  3. You can also upload a custom audio file. On the Custom tab, click Upload to generate a Sound ID for your file.

    Uploaded audio files must be in MP3 or WAV format. Each file cannot exceed 1.5 MB, and you can upload a maximum of five files.

Step 2: Set background sounds during a call

Audio and video calls

When you call the StartAIAgentInstance operation, set the AmbientSoundConfig parameter in the AIAgentConfig object.

Parameter

Type

Description

Example

ResourceId

String

The ID of the background sound.

public_conversation

Volume

Integer

The volume of the background sound. The value must be an integer from 0 to 100, where 0 disables the sound.

50

Outbound calls

When you call the StartAIAgentOutboundCall operation, set the AmbientSoundConfig parameter in the AIAgentOutboundCallConfig object.

Parameter

Type

Description

Example

ResourceId

String

The ID of the background sound.

public_conversation

Volume

Integer

The volume of the background sound. The value must be an integer from 0 to 100, where 0 disables the sound.

50