https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why audio is cutting a lot during web call
# ❓・ai-evy-support
m
@AI Evy Why audio is cutting a lot during web call ?
a
Thanks for tagging me @Michel D.. I'll look through relevant sources and get back to you shortly.
### Answer Audio cutting during web calls can be caused by several factors. Here are some troubleshooting steps: ## Check Your Web SDK Configuration When starting a web call, you can configure audio settings: [(1) ]()
Copy code
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,
}) ;
## Listen for Errors Add error handling to catch issues:
Copy code
javascript
retellWebClient.on("error", (error) => {
 console.error("An error occurred:", error) ;
 // Stop the call
 retellWebClient.stopCall() ;
}) ;
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) [[2] Discord message from @adiestel on 2024-06-30](https://discord.com/channels/1186424376300679209/1186462578310910112/1256788954339086336) [[3] Check actual latency](https://docs.retellai.com/reliability/check-actual-latency) [[4] Troubleshoot high latency](https://docs.retellai.com/reliability/troubleshoot-latency) ​
## Common Causes - **Mobile networks**: Some users have reported choppiness on mobile devices, particularly on iOS Chrome and Safari [(2) ]() - **Network conditions**: Audio may stutter on mobile networks vs WiFi - **High latency**: Check your end-to-end latency in the Call History section—P90 latency exceeding 3 seconds can cause issues [(3) ]() , [(4) ]() ## Latency Troubleshooting If latency is the issue: - Check for features marked with a turtle icon 🐢 in your configuration - Monitor LLM response time (normal range is 500ms–900ms) - Check the [Status Page]() for ongoing issues - Consider geographic distance if making international calls Check out these potentially useful sources: [Audio Basics]() , [Troubleshoot high latency]() , [Connect to web call]() If the issue persists, share your call ID in the support-questions channel for further debugging.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.