clean-autumn-36199
11/02/2025, 4:25 AMtall-airline-16756
11/02/2025, 4:25 AMtall-airline-16756
11/02/2025, 4:25 AMVAD.load() method is a blocking call and can take a bit of time to load the model, which might cause delays if done during a live session.
By setting up the model in the prewarm function, you’re making sure the VAD is all set and ready to go right when your actual job begins, helping to avoid any frustrating latency. This is especially important in real-time applications where even small delays can affect the user experience. Without prewarming, each new job would have to load the model on the fly, which could slow things down and create performance hiccups when there’s a lot going on.
Sources: src/agent.ts | agent_extensions/agent_extensions/handlers/wake_word_handler.py | Silero VAD plugin | LiveKit docs | livekit-plugins/livekit-plugins-silero/livekit/plugins/silero/onnx_model.py | examples/src/restaurant_agent.tsclean-autumn-36199
11/02/2025, 4:26 AMtall-airline-16756
11/02/2025, 4:27 AM