https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way to play background music during fun...
# ❓・ai-evy-support
h
@AI Evy is there a way to play background music during function call delays
a
Thanks for tagging me @happy.koala. I'll look through relevant sources and get back to you shortly.
### Answer --- There isn't a specific "background music during function calls" feature documented. However, you can configure ambient sound on your agent, which plays continuously during the call. [(1) ]() Available ambient sound options include: -
coffee-shop
-
convention-hall
-
summer-outdoor
-
mountain-outdoor
-
static-noise
-
call-center
You can set this via the API using
ambient_sound
and control volume with
ambient_sound_volume
(range 0–2) .
Copy code
javascript
const agentResponse = await client.agent.update('16b980523634a6dc504898cda492e939', { 
  agent_name: 'Jarvis' 
}) ;
This ambient sound would play throughout the call, including during function call delays—but it's not specifically triggered only during those delays. For managing user expectations during delays, a common approach mentioned in community discussions is having the agent say a "please wait" message before the tool call executes. [(2) ]() Check out these potentially useful sources for more details: - [Update Voice Agent]() - [Handle background speech & noise]() Would you like me to provide a general answer about other potential approaches?
​ To learn more, see the sources I considered: [[1] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[2] Delay Between Function call and Request Dispatch is 1min+](https://discord.com/channels/1186424376300679209/1415750014793158776) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.