Thanks for reaching out! I’d love to explain how LiveKit agents handle user input. They don’t stream your speech to the LLM in real-time. Instead, your speech is first gently converted into text using a Speech-to-Text (STT) model. Once that transcription is ready, it’s added to the chat as a complete message and then sent over to the LLM for processing.
From there, the LLM looks at the whole chat context and crafts a response. This response is streamed back to the agent, allowing it to start working on the Text-to-Speech (TTS) output bit by bit, even before the full response is finished. I hope this helps clarify things—please feel free to ask if you have more questions!
Sources:
livekit-plugins/livekit-plugins-anthropic/livekit/plugins/anthropic/llm.py |
Large language models (LLM) | LiveKit Docs