hi, I'm trying to reduce latency. current setup `...
# agents
k
hi, I'm trying to reduce latency. current setup
Copy code
vad_plugin = silero.VAD.load(
        min_speech_duration=0.05,
        min_silence_duration=0.2, 
        activation_threshold=0.5, 
    ) 

session = AgentSession(
        vad=vad_plugin,
        stt=deepgram.STT(model="nova-3")
        llm=openai.LLM(model="gpt-4.1-mini-2025-04-14"),
        tts=elevenlabs.TTS(model="eleven_flash_v2_5"),
        allow_interruptions=True,
        min_interruption_duration=0.1,
        min_endpointing_delay=0.1,
        max_endpointing_delay=0.5,
    )
but still Agent takes ~2s - 3s to reply 😞
q
I am facing same issue , Around 2-3 sec latency and trying to figure out something...
j
@quaint-afternoon-36516 2-3 minutes latency?
the latency depends on how fast of your connections to the STT, LLM, and TTS apis, check https://docs.livekit.io/agents/build/metrics/#metrics-reference for the metrics
q
i am sorry i meant seconds,
@jolly-air-155
k
I am checking logs to see what's going wrong