is it possible to detect language and change stt o...
# ask-ai
e
is it possible to detect language and change stt or tts model accordingly for agent?
t
Thanks for reaching out, Aman. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether an agent can detect language and switch STT/TTS models accordingly — yes, with some caveats. • STT: Many STT providers integrated with LiveKit support automatic language detection (Soniox, Gladia, Deepgram
multi
, AssemblyAI multilingual model, ElevenLabs Scribe V2, Groq/Whisper). You can use those providers or LiveKit's
auto
model selector to have STT detect language automatically. • TTS: Automatic language detection for TTS is not provided. Instead, use a multilingual TTS voice (several providers offer multilingual models) or explicitly set the
language
parameter for TTS when you know the language. • Automatic switching: LiveKit does not perform dynamic model switching for both STT and TTS within a session automatically. Implement this in your application/agent logic: a. Use STT (with auto-detect) or a language detection step on STT output. b. If needed, reconfigure or instantiate the appropriate TTS model (or pick a multilingual voice) and/or switch STT provider/settings for subsequent transcription. If you’d like, tell me which STT/TTS providers you plan to use and whether you want fully automatic switching or a fallback strategy, and I’ll suggest concrete configuration steps. Sources: Soniox STT plugin guide | LiveKit Docs | Gladia STT plugin guide | LiveKit Docs | Deepgram STT | LiveKit docs | AssemblyAI plugin guide | LiveKit Docs | Speech-to-text (STT) models | LiveKit Docs
e
can you share multilingual stt models supported with livekit
t
You want a list of multilingual STT models supported with LiveKit. Below are providers and their multilingual-capable models or settings you can use. • Deepgram (via LiveKit Inference) ◦ Use
language=multi
for multilingual transcription / automatic detection. • ElevenLabs (Scribe V2 Realtime via LiveKit Inference) ◦ Scribe V2 Realtime supports automatic language detection for 90+ languages. • AssemblyAI (plugin) ◦
universal-streaming-multilingual
model for multilingual transcription. • Soniox (plugin) ◦ Supports automatic language identification when
enable_language_identification
is
true
. • Gladia (plugin) ◦ Automatically detects language when
languages
is left empty; supports code-switching between specified languages. • Groq (plugin with Whisper models) ◦ Whisper models auto-detect language unless a specific language is set. • (LiveKit)
auto
model selector ◦
stt="auto"
or
stt="auto:<lang>"
lets LiveKit pick the best available multilingual model for the language (e.g.,
auto:es
). If you tell me which providers you prefer or which languages you need, I can recommend specific model choices and example configuration for LiveKit.