Hey devs. Is anyone else experiencing significant ...
# agents
s
Hey devs. Is anyone else experiencing significant latency on the first response during phone calls with their AI agents? I'm seeing a ~7 second delay from when the user says "hello" to when we get the first response. Here's what I'm observing: • - User speaks at :03 • - VAD/STT doesn't capture until :07 • - Massive EOU delay (3.4s) • - Response finally delivered at :10
Copy code
00:38:58 | INFO | outbound_ai_agent:165 | šŸ“” STATUS UPDATE: ongoing | Room: room-453526d6-c61c-40ce-8a34-0e1633d0a09b | URL: http://localhost:8000/api/v1/livekit/webhook | Status: 200
00:39:03 | INFO | outbound_ai_agent.__mp_main__:53 | STT metrics
2025-08-24 00:39:03,809 - INFO livekit.agents - STT metrics {"audio_duration": 5.0, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
00:39:04 | INFO | outbound_ai_agent.__mp_main__:285 | šŸ‘¤ User spoke first, agent will respond naturally
2025-08-24 00:39:07,732 - DEBUG livekit.agents - received user transcript {"user_transcript": "Hello.", "language": "en", "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
2025-08-24 00:39:07,878 - DEBUG livekit.plugins.turn_detector - eou prediction {"eou_probability": 0.36358243227005005, "input": "|im_start|user\nhello", "duration": 0.13, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
00:39:07 | INFO | outbound_ai_agent.__mp_main__:45 | EOU metrics
2025-08-24 00:39:07,879 - DEBUG livekit.agents - using preemptive generation {"preemptive_lead_time": 0.14629602432250977, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
2025-08-24 00:39:07,880 - INFO livekit.agents - EOU metrics {"end_of_utterance_delay": 3.4, "transcription_delay": 3.26, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
00:39:08 | INFO | outbound_ai_agent.__mp_main__:53 | STT metrics
2025-08-24 00:39:08,809 - INFO livekit.agents - STT metrics {"audio_duration": 5.0, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
00:39:09 | INFO | outbound_ai_agent.__mp_main__:14 | LLM metrics
2025-08-24 00:39:09,325 - INFO livekit.agents - LLM metrics {"ttft": 1.35, "prompt_tokens": 650, "prompt_cached_tokens": 0, "completion_tokens": 19, "tokens_per_second": 11.97, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
00:39:10 | INFO | outbound_ai_agent.__mp_main__:37 | TTS metrics
2025-08-24 00:39:10,533 - INFO livekit.agents - TTS metrics {"ttfb": 0.5016634580097161, "audio_duration": 3.89, "pid": 5764, "job_id": "AJ_b9Y2nL6F3oF2"}
The rest of the conversation flows normally after this initial lag. Feels like a cold start issue with the VAD/EOU not capturing the first audio promptly. I've seen a few threads on this but still haven't found any fixes.
@refined-appointment-81829 please any help?
l
@square-lion-80075 Any progress with this one? @refined-appointment-81829 There is a github issue linked to this as well: https://github.com/livekit/livekit/issues/3548
r
Why is the interactions slow?
l
Sorry? I am not sure šŸ™‚ I noticed that this happens only over the phone. Not on the console
r
How about with
dev
instead of console and using webrtc client?
c
i am having the same issue. infact on this group and on github issues many people experiencing the same issue. First response has significant delay and user keeps saying 'hello' 'hello'. it is with 'start' option too. @refined-appointment-81829 can you help. (is it something to do with stt, llm warmup? or there is something else?)
r