stt=google.STT( model="latest_long", ...
# ask-ai
r
stt=google.STT( model="latest_long", # Current supported model for long-form audio # location="us-central1", # Specify region where model is available language_code="si-LK", # Set language code # spoken_punctuation=False, ), how to change supported language on google stt .language_code doesnt work. it not enables sinhala ? language_code doest work
t
Thanks for reaching out, Av. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you want to change the supported language for Google STT in LiveKit, all you need to do is set the
languages
parameter in the
google.STT()
constructor. Here's a quick example:
Copy code
from livekit.plugins import google
stt_instance = google.STT(languages="si-LK")
The language code
"si-LK"
stands for Sinhala, which is supported by Google STT in LiveKit. Just make sure you're using the right syntax and that the language is enabled in your Google Cloud project. If you want to double-check which languages are supported, you can always visit Google's official Speech-to-text supported languages page. Sources: Google Cloud STT integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-gladia/livekit/plugins/gladia/stt.py