What are the advantages of using use_realtime in s...
# ask-ai
f
What are the advantages of using use_realtime in stt. when to or when not to use it
t
Thanks for reaching out, Tushar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The
use_realtime
parameter in STT is a wonderful feature that enables real-time transcription, giving you handy benefits like interim (partial) results and built-in voice activity detection (VAD) for turn detection. This makes it perfect for applications where live feedback is key, such as live subtitles, interactive agents, or low-latency pipelines. That said, it’s best to avoid using
use_realtime
if: • You’re working with a real-time LLM (like OpenAI RealtimeModel) that already handles its own turn detection and doesn’t emit interim results. • Another system, such as LiveKit’s Turn Detector Model, manages turn detection for you. • You’re aiming to keep API usage and costs low, since real-time transcription can be a bit resource-intensive. Please feel free to reach out if you’d like me to explain anything further or help tailor this to your specific needs—I’m here to help! Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | Realtime model plugins | LiveKit Docs | LiveKit turn detector plugin | LiveKit Docs
f
I am using manual detection so I dont need VAD. correct? In my case can i get performance benifits from using
use_realtime
.
t
I completely understand where you're coming from! Even if you're using manual detection and don't necessarily need VAD, turning on
use_realtime=True
can still bring some nice advantages. It lets you see interim transcription results, which means you get partial speech content right away. This can really boost responsiveness and is super helpful if you're building interactive UIs, want early intent detection, or need quick previews of user speech. That said, there isn't specific data on performance improvements like latency or resource usage for
use_realtime
in this exact case. But if your app could benefit from having access to partial transcripts as speech happens, it might be worth giving it a try. Please feel free to reach out if you'd like to dive deeper into specific setups or use cases—I’m here to help! Sources: examples/voice_agents/realtime_turn_detector.py