https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> i'm testing a conversation ...
# ❓・ai-evy-support
p
@AI Evy i'm testing a conversation flow agent. but the agent can't hear me although the site have mic privilges
a
Thanks for tagging me @patipato4u. I'll look through relevant sources and get back to you shortly.
### Answer For web call microphone issues with conversation flow agents, the Retell Web SDK provides configuration options for audio capture devices [(1) ]() . When starting a call, you can specify the microphone device using the
captureDeviceId
parameter :
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,
}) ;
You can also listen for error events to diagnose audio issues :
Copy code
javascript
retellWebClient.on("error", (error) => {
 console.error("An error occurred:", error) ;
 // Stop the call
 retellWebClient.stopCall() ;
}) ;
If the microphone permissions are granted but the agent still can't hear you, try setting the
captureDeviceId
to "default" explicitly or check the browser's developer console for any error messages that might indicate the specific audio capture issue .
​ To learn more, see the sources I considered: [[1] Connect to web call](https://docs.retellai.com/deploy/web-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.