microscopic-dress-75199
12/08/2025, 10:21 PMtall-airline-16756
12/08/2025, 10:21 PMtall-airline-16756
12/08/2025, 10:21 PMmicroscopic-dress-75199
12/08/2025, 10:22 PMtall-airline-16756
12/08/2025, 10:22 PMllm (e.g., OpenAI Realtime, Gemini Live) and add a separate STT plugin on the AgentSession to produce live transcriptions.
• Realtime models do not provide incremental/interim user transcripts reliably; a dedicated STT plugin gives real-time transcription (useful for live captions, turn detection, or capturing partial utterances).
• This setup will incur additional STT inference cost because transcription runs separately from the realtime model.
Example (conceptual):
from livekit.agents import AgentSession
from livekit.plugins import openai, deepgram
session = AgentSession(
llm=openai.realtime.RealtimeModel(voice="alloy"),
stt=deepgram.STT(model="nova-2")
)
Notes and useful features:
• If you use the turn detector, a separate STT plugin is required because the detector relies on live STT results.
• Transcriptions from the STT plugin can be forwarded to the frontend or the transcription_node for storage/display.
Would you like an example specific to your platform (Web, iOS, Android, or server) or a sample that forwards transcripts to your frontend?
Sources: Realtime model plugins | LiveKit Docs | LiveKit turn detector plugin | LiveKit docs | Text and transcriptions | LiveKit docsmicroscopic-dress-75199
12/08/2025, 10:25 PMtall-airline-16756
12/08/2025, 10:25 PMllm.
2. Add an STT plugin on the same AgentSession to receive real‑time transcriptions.
3. Use the STT output for frontend captions, transcription_node, or turn detector logic.
Note: running both will incur additional STT inference cost.
Would you like a platform‑specific example (Web, iOS, Android, or server) or a snippet showing how to forward transcripts to your frontend?