What’s the expected end-to-end latency when using ...
# agents
b
What’s the expected end-to-end latency when using LiveKit + LiveKit Agents (hosted on GKE) with Twilio SIP input? I’m currently seeing 2+ seconds and trying to get it down to around 1.5s is that realistic, and where should I focus optimizations?
b
2+ seconds is kinda high. did u download the model files that agent needs? Look at this https://docs.livekit.io/agents/start/voice-ai/
👀 1
b
you mean
python agent.py download-files
right? I don’t think you can even start the agent without it right?
b
you can start the agent but it will have the spordic behavior.
use this link to understand how the optimize latency + how you can log where your bottleneck maybe. https://learn.deeplearning.ai/courses/building-ai-voice-agents-for-production/lesson/znx7z/conclusion
👀 1
b
thanks!
b
maybe u arent streaming, target <1 sec latency (achievable) unless u have a specific use case that you can not able to bypass
m
I would say LLM and server location are the big ones to look for - i’m getting around 1.2s for a fairly complex setup via SIP and its getting to the point where its too fast and feeling unnatural
c
@magnificent-salesclerk-38445 are you using twilio for SIP? Would love to know if 1.2 s is end to end latency as I am getting 200ms latency in LK<>Twilio and 500-600ms latency just in Twilio<>EndUser latency via PSTN. So would love to get your help