<@U01KZ0SCDKL> <@U08CKJH7C12> Hi dear, I am facing...
# agents
h
@magnificent-art-43333 @refined-appointment-81829 Hi dear, I am facing latency issues with my livekit calling agent, we have also purchased your premium and mailed your team for support also, when agent starts it speaks first message and when I do first conversation it taking delays and then speaks and after it conversation latency is 4 seconds, I am using perfect models like using LLM from qroq, and tts and stt from deepgram and still having latency issues, Can anyone guide me? I have check with metrics event and in case of calling agent it shows that LLM and turn detection and tts takes more time how to make it better like latency of 1 or 1.5 seconds, is it possible? can any expert guide me I am using these versions
Copy code
livekit==1.0.6
pinecone==6.0.2
python-dotenv==1.1.0
livekit-agents==1.0.19
langchain_openai==0.3.16
livekit-plugins-openai==1.0.17
livekit-plugins-silero==1.0.17
livekit-plugins-deepgram==1.0.17
livekit-plugins-turn-detector==1.0.19
livekit-plugins-aws==1.0.19
livekit-plugins-noise_cancellation==0.2.1
j
what are the latency of each component, you can log them from the metrics_collected event https://docs.livekit.io/agents/build/metrics/#metrics-reference or the telemetry https://docs.livekit.io/agents/build/metrics/#telemetry
h
@jolly-air-155 Hi dear, I have already logged them and it shows LLM, TTS, and turn detection takes more time like greater than 0.5 seconds how to reduce them I am using perfect models llm, stt and tts. please guide
b
Where are you running it ? and can you share your entry point file (remove sensitive data) ? Might be a resources issue (RAM and CPUS) more than code issues.
are you using an avatar ?
w
@hallowed-jordan-87556 we have faced issue, like logging or some code which is happing sync between STT -> LLM -> TTS. example we are pushing the events to Database for analytics, which was adding latency. check those. with out seeing the code. its hard to point. since you are telling you have good Models.
h
@witty-yak-62929 we have solved all issues
w
Good to hear, any input for me
h
@witty-yak-62929 did not understand you have some issues which you want to help me out ?
w
How you solved? Anything I can learn?