Livekit latency

Posted by MostMulberry4716@reddit | LocalLLaMA | View on Reddit | 12 comments

Livekit playground latency

I've built my own agent, but in the deployment phase I'm perceiving an excess of latency with respect to the console trial. Considering that in both cases I'm using LiveKit inference, I found it weird. The excess of latency is particularly relevant when the agent calls some tools. I've run several experiments and I can't find the problem. By hosting on Livekit servers, I think the latency should have an improvement and not a downturn.

The tests I've already run:

At this point I'm stuck, and as you mentioned on the page, the expected latency from using LiveKit is from 1.5 to 2.5 sec. Right now I have such performances in console, but in playground and SIP trunking, which is the service I'll use in production, I have up to 5 seconds, which are not tolerable for a conversation since the optimality would be around 1s. I hope to receive a satisfactory answer and that the problem could be solved.

If you are interested in the geolocation and server distance parameters, it's all in Eu-central