https://retellai.com/?utm_source=discord&utm_medium=seo logo
when I call the agent on speaker phone it cuts off...
# ❓・ai-evy-support
p
@AI Evy when I call the agent on speaker phone it cuts off in the first 5 seconds and then starts talking again from scratch. Doesnt seem to happen without speaker phone. how do I fix this
a
Thanks for tagging me @punk8357. I'll look through relevant sources and get back to you shortly.
### Answer The speaker phone cutting issue you're experiencing could be related to how the agent handles the initial connection and audio processing. While the sources don't specifically address speaker phone issues, there are a few agent configuration parameters that might help: You can adjust the
begin_message_delay_ms
parameter when creating or updating your agent. This adds a delay before the agent starts speaking, which might help with speaker phone audio initialization: [(1) ]() [(2) ]()
Copy code
javascript
const agentResponse = await client.agent.update('your-agent-id', {
  begin_message_delay_ms: 1000,
}) ;
[(1) ]() The
begin_message_delay_ms
value can range from 0 to 5000 milliseconds and gives the user more time to prepare for the call. [(1) ]() [(2) ]() You might try increasing this value to see if it resolves the cutoff issue. Additionally, check your
denoising_mode
setting. The agent supports different denoising modes that could interact differently with speaker phone audio:
Copy code
javascript
denoising_mode: "noise-cancellation"
​ To learn more, see the sources I considered: [[1] Update Voice Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Voice Agent](https://docs.retellai.com/api-references/create-agent) ​
[(1) ]() Available options are
"no-denoise"
,
"noise-cancellation"
, or
"noise-and-background-speech-cancellation"
. [(1) ]() [(2) ]() If these adjustments don't resolve the issue, I'd recommend checking out these sources for more configuration options: - [Create Voice Agent]() - [Update Voice Agent]()
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.