does the agent in livekit put stt llm tts into que...
# ask-ai
f
does the agent in livekit put stt llm tts into queue when dealing with a user sentence
t
Thanks for reaching out, Huy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you’re asking how a LiveKit agent sequences STT, LLM, and TTS for a user utterance. • STT: Runs streaming; it’s not queued. It emits transcripts and end-of-turn events that trigger the next step. • LLM: Kicks off after end-of-turn (or earlier if preemptive generation is enabled). • TTS: This part is queued. Speech playback is managed by a priority queue with handles that move through Created → Scheduled → Authorized → Generating → Done/Interrupted. If helpful, I can outline how to enable preemptive generation or adjust speech priorities. For reference: Pipeline nodes and hooks, STT models, and an overview of agent session flow and speech queueing in the composite guide: Agent Session & Client Integration. Sources: Speech-to-text (STT) models | LiveKit Docs | Agent Session & Client Integration | livekit/livekit_composite | DeepWiki | Pipeline nodes and hooks | LiveKit docs