white-sugar-85462
09/24/2025, 6:39 AMtall-airline-16756
09/24/2025, 6:39 AMtall-airline-16756
09/24/2025, 6:40 AMqueue_size_ms for audio capture is set between 1000–2000ms. This helps prevent frame capture errors that might cause disconnects.
• Permissions: Double-check microphone permissions in your app settings, such as the Info.plist on iOS, to ensure everything’s properly authorized.
• Agent Dispatch: It’s a good idea to confirm that your agent dispatch rules and the agent_name are correctly set up.
• Network/Signaling Issues: Keep an eye out for errors like JOIN_FAILURE or SIGNAL_CLOSE in your logs, as these can point to network or token-related problems.
About the tests you’re planning, here are a couple of suggestions to start with:
1. Disable agent dispatch: Try commenting out dispatchAgent in AgentCallService. This can help determine if the issue is related to remote audio or renegotiation.
2. Route toggle test: Consider removing setSpeakerphoneOn(true) or setting it to false to see if forcing speaker routing might be causing the disconnect.
Also, it would be really helpful if you could confirm a few details for me:
• Are there any other voice screens (like LiveKitVoiceChatScreen) active when you’re using AgentCallScreen?
• What device and iOS version are you using? And which audio route (speaker, earpiece, or Bluetooth) is active when the issue happens?
With this info, we can dig deeper and find a solution that works for you. Thanks for your patience—I'm here to help you through this!
Sources: agent-console/lib/event-types.ts | agents/src/voice/room_io/room_io.ts | livekit-protocol/livekit/protocol/models.pyi | Connecting to LiveKit | LiveKit Docs | complex-agents/drive-thru/frontend/components/session-view.tsx