10v32616
08/12/2025, 2:15 AMAI Evy
08/12/2025, 2:15 AMAI Evy
08/12/2025, 2:16 AMcall_successful: false , which suggests the agent couldn't complete its intended conversation flow.
To debug this issue:
1. Check your agent's prompt configuration - Ensure your agent has clear instructions for handling user responses and moving the conversation forward rather than repeating introductions.
2. Review the full transcript - You can retrieve detailed conversation data including the transcript_object which shows the exact exchange between agent and user [(1) ]() [(2) ]() .
3. Monitor latency metrics - High latency can contribute to turn-taking issues. If your end-to-end latency P90 exceeds 3 seconds, this could cause conversational problems [(3) ]() .
The call_analysis object you're seeing is part of the standard call response that includes call_summary, user_sentiment, and call_successful fields [(1) ]() [(2) ]() . This analysis correctly identified the conversational loop, which helps pinpoint that the issue is likely in your agent's conversation handling logic rather than technical connectivity problems.AI Evy
08/12/2025, 2:16 AMAI Evy
08/12/2025, 2:16 AM10v32616
08/12/2025, 2:21 AMAI Evy
08/12/2025, 2:21 AMAI Evy
08/12/2025, 2:22 AMresponsiveness parameter controls how responsive the agent is, with values ranging from [0,1] [(1) ]() [(2) ]() [(3) ]() . Lower values mean less responsive agent (wait more, respond slower) , while higher values mean faster exchanges .
For your specific problem where the agent keeps repeating introductions, you should also consider adjusting interruption_sensitivity . This controls how sensitive the agent is to user interruptions, with values ranging from [0,1] . Lower values mean it will take longer/more words for the user to interrupt the agent, while higher values make it easier for users to interrupt . When set to 0, the agent would never be interrupted .
You can update these settings using the Update Agent API or through the conversation flow global settings [(4) ]() . In conversation flows, you can adjust responsiveness in the speech settings section . You can also dynamically update these values during a call using the LLM WebSocket Update Agent Event [(5) ]() .
Based on community experience, some users have found success with prompt-based solutions for handling interruptions and conversational flow issues [(6) ]() . The key is finding the right balance between responsiveness and allowing users to properly interact without the agent cutting them off or getting stuck in loops.AI Evy
08/12/2025, 2:22 AMAI Evy
08/12/2025, 2:22 AM10v32616
08/12/2025, 2:28 AMAI Evy
08/12/2025, 2:28 AMAI Evy
08/12/2025, 2:28 AMsampleRate parameter is optional and can be configured as follows:
javascript
await retellWebClient.startCall({
accessToken: createCallResponse.access_token,
sampleRate: 24000, // (Optional) set sample rate of the audio capture and playback
// (Optional) device id of the mic.
captureDeviceId: "default",
// (Optional) device id of the speaker
playbackDeviceId: "0ec1807fd0fe6e51b990660ec4e2ebb78sdfcba51e279815d00c423ce03407ff",
// (Optional) Whether to emit "audio" events that contain raw pcm audio bytes represented by Float32Array
emitRawAudioSamples: false,
}) ;
The documentation indicates that 24000 Hz is a supported sample rate option for web calls . However, I don't have specific information about LiveKit SDK integration with Unity or any potential issues that might arise from using a 24000 Hz sample rate in that specific configuration.
For more detailed information about audio handling and sample rates, you might want to review the [Audio Basics]() documentation [(2) ]() .AI Evy
08/12/2025, 2:28 AMAI Evy
08/12/2025, 2:28 AM10v32616
08/12/2025, 2:32 AMAI Evy
08/12/2025, 2:32 AMAI Evy
08/12/2025, 2:32 AMdenoising_mode parameter to address echo and feedback problems [(3) ]() :
javascript
denoising_mode: "noise-and-background-speech-cancellation"
The available denoising modes are [(2) ]() :
- `noise-cancellation`: Default mode that removes background noise with minimal impact on speech accuracy
- `noise-and-background-speech-cancellation`: More aggressive mode that removes both background noise and background speech, though it may distort the waveform and incurs a $0.005/min surcharge
For your specific echo issue, try the more aggressive noise-and-background-speech-cancellation mode . Additionally, you can adjust the interruption_sensitivity parameter to make the agent less sensitive to false interruptions [(3) ]() :
javascript
interruption_sensitivity: 0.8AI Evy
08/12/2025, 2:32 AMAI Evy
08/12/2025, 2:32 AMAI Evy
08/12/2025, 2:32 AM10v32616
08/12/2025, 5:29 AMAI Evy
08/12/2025, 5:29 AMAI Evy
08/12/2025, 5:29 AMdenoising_mode and interruption_sensitivity settings together
3. Check audio routing - Make sure your Unity audio output isn't being routed back to the microphone input
4. Consider hardware factors - Mobile device speakers and microphones in close proximity can create feedback loops that require both client and server-side mitigation
If you're still having issues, could you complete your question so I can provide more specific guidance? For example, are you still experiencing the echo problem, or have you encountered a new issue?AI Evy
08/12/2025, 5:29 AMAI Evy
08/12/2025, 5:29 AM10v32616
08/12/2025, 5:31 AMAI Evy
08/12/2025, 5:31 AMAI Evy
08/12/2025, 5:31 AMjavascript
"denoising_mode": "remove noise + background speech"
This mode removes both background noise and background speech, though it might distort the waveform and incurs a $0.005/min surcharge . For your severe echo case, this is necessary .
Set interruption sensitivity very low: [(2) ]()
javascript
"interruption_sensitivity": 0
When interruption sensitivity is set to 0, the agent would never be interrupted . This prevents the echo from cutting off the agent mid-sentence .
Additional settings to try: [(1) ]()
- Set interruption sensitivity to 0.8 first, then gradually lower it if needed
- For extremely noisy environments, you may need to experiment with even higher settings
Community solutions that have worked: [(3) ]()
Some users have successfully handled interruption issues through prompt engineering, where they instruct the AI to ask "Did you say something?" when it detects potential interruptions, allowing for graceful recovery from false positives .
The combination of the aggressive denoising mode and zero interruption sensitivity should prevent the echo from being transcribed as user input and interrupting the agent's speech flow.AI Evy
08/12/2025, 5:31 AMAI Evy
08/12/2025, 5:31 AM