how can I change the language in tts in the runtim...
# ask-ai
a
how can I change the language in tts in the runtime?
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can change the language in Text-to-Speech (TTS) during runtime in LiveKit by using the
update_options
method provided by the TTS plugin you are using. Here are examples for different plugins: • Neuphonic TTS: Use the
lang_code
parameter:`tts.update_options(lang_code="en-US")` • Google TTS: Use the
language
parameter:`tts.update_options(language="en-US")` • LMNT TTS: Use the
language
parameter:`tts.update_options(language="en")` • PlayAI TTS: Use the
language
parameter:`tts.update_options(language="en-US")` • ElevenLabs TTS: Use the
language
parameter:`tts.update_options(language="en")` The specific language codes and formats may vary between providers, so please refer to the documentation of the TTS provider you are using for supported language codes. Sources: GitHub::livekit::agents | livekit-plugins/livekit-plugins-elevenlabs/liveki...