For a self-hosted LiveKit setup using step-by-step handoff with STT, LLM, TTS, and Turn Detector, here are some important memory considerations to keep in mind:
•
Turn Detector: This typically requires around ~200MB for the English model or ~400MB for the multilingual model. It’s the main part that uses local memory.
•
VAD Model: While the exact memory needs aren’t specified, it’s good to know that this model is preloaded during initialization and reused to save resources.
•
External Components: STT, LLM, and TTS are usually accessed through external APIs, so they don’t add much to your local server’s memory load—unless you’re hosting them yourself.
•
Agent Runtime Overhead: The agent process itself will need some extra memory, though the exact amount can vary depending on how it’s implemented.
As you think about workflows, remember that memory usage grows with the number of agents involved in the handoff. Each agent brings its own memory needs, especially for the turn detector and any other components running locally.
If you’re considering hosting STT, LLM, or TTS locally, their memory requirements will depend on the specific models you choose. Since this info isn’t detailed in the documentation, it might be helpful to check the model docs directly or try some testing to get a clearer picture.
Sources:
examples/voice_agents/realtime_turn_detector.py |
LiveKit turn detector plugin | LiveKit docs |
agent-examples/agent_examples/pipeline_agent.py |
agent.py |
main.py