in livekit agents how can we switch between the ST...
# ask-ai
b
in livekit agents how can we switch between the STT model in the middle of the call? do we have any github example?
t
Thanks for reaching out, Mohammed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just a quick heads-up: In LiveKit, you can switch the STT model during a call if you're using Gladia STT by using the
update_options
method. Here’s a little example for you:
Copy code
gladia_stt.update_options(
    languages=["ja", "en"],
    translation_enabled=True,
    translation_target_languages=["fr"]
)
This lets you tweak settings like languages and translation options right in the middle of a call—pretty handy, right? Now, if you’re working with other STT providers like Cartesia, Deepgram, Groq, or OpenAI, this feature isn’t clearly documented yet. But don’t worry! Just give me a shout, and I’ll help you figure it out. Sources: livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py