m
hi
t
Thanks for reaching out, Rahib. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — thanks for reaching out. How can I help you today? If you’re reporting an issue, please include: • a short description of the problem, • the LiveKit SDK/platform you’re using (Web, iOS, Android, or server), • room or session ID (if applicable), and • any error messages or logs/screenshots you can share.
m
Is there a way to keep realtime agent STT and normal agent session stt work together? I want to capture the transcript when using realtime models
t
You're asking whether you can run both a realtime model and a normal agent session STT at the same time to capture transcripts when using realtime models — yes, you can. Key points and recommended approach: • Use the realtime model as your
llm
(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):
Copy code
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 docs
m
so using a STT will not affect the realtime model STT at all? Currently i am using gpt-whisper when setting up realtime model for the agent
t
Adding a separate STT plugin will not interfere with the realtime model’s built‑in STT (e.g., GPT‑Whisper). They run independently: • Your realtime model (gpt‑whisper) continues to handle end‑to‑end audio I/O and agent responses. • A separate STT plugin (Deepgram, AssemblyAI, etc.) performs live transcription in parallel and can provide incremental results for captions, turn detection, or immediate transcript capture. Recommended setup: 1. Keep your realtime model as the
llm
. 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?