i want to know which STT provider should i use for...
# ask-ai
m
i want to know which STT provider should i use for urdu language please suggest me some best options
t
Thanks for reaching out, Zeeshan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
For Urdu language support in LiveKit, Google Cloud STT is your best bet. It fully supports Urdu (language code:
ur-PK
) and works smoothly with LiveKit. If you’d like a hand setting up Google Cloud STT or want to chat about other options, just give me a shout—I’m here to help! Sources: plugins/deepgram/src/models.ts | livekit-plugins/livekit-plugins-sarvam/livekit/plugins/sarvam/__init__.py
m
other then google
t
Right now, besides Google Cloud, there aren't any other STT providers officially confirmed to support Urdu within LiveKit. That said, Sarvam could be worth checking out since it focuses on Indian languages, though it doesn’t clearly say if Urdu is supported. To be sure, you might want to take a look at Sarvam’s official API docs or try setting the language parameter to
ur-PK
and see how it goes. If it turns out Sarvam doesn’t support Urdu, you might need to explore custom STT integrations or even develop a new plugin. I’m here if you want to chat more about this! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/stt.py | Sarvam STT integration guide | LiveKit Docs | Speech-to-text (STT) integrations | LiveKit Docs | Working with plugins | LiveKit Docs
m
ok so i need a code
t
Right now, there isn’t a clear confirmation that Sarvam STT supports Urdu. But you can give it a try by setting it up with the Urdu language code (
ur-PK
) in your LiveKit app and see how it goes. If you want, I’m here to help with the exact code or any other questions you have while testing it out!
m
No i need code fot google STT model using urdu language
t
Here’s a simple example to help you set up the Google Cloud STT plugin in LiveKit for Urdu language support:
Copy code
from livekit import GoogleSTT

# Initialize Google STT with Urdu language code
stt = GoogleSTT(language="ur-PK")

# Use the STT instance in your LiveKit application
# Example: Transcribe audio from a room
transcription = stt.transcribe(audio_stream)
print(transcription)
Just swap out
audio_stream
with the actual audio input you want to transcribe. This setup uses the Urdu language code (
ur-PK
) that Google Cloud STT supports. If you run into any questions or want a hand with implementation or testing, feel free to reach out—I’m here to help!
m
what is the model name in google STT
t
Google STT in LiveKit offers a variety of models like
long
,
short
,
telephony
,
medical_dictation
,
medical_conversation
,
chirp
,
chirp_2
,
latest_long
, and
latest_short
. That said, there isn’t a specific model tailored just for Urdu at the moment. Depending on what you’re aiming for, you might pick
long
for longer audio clips or
chirp
if you want better transcription quality across different languages. If you’d like, I’m here to help you figure out the best model or guide you through the setup—just let me know! Sources: livekit-plugins/livekit-plugins-mistralai/livekit/plugins/mistralai/models.... | Google integration guide | LiveKit Docs | Google Cloud STT integration guide | LiveKit Docs