How to specify language codes
The language_code parameter tells the STT model which language to expect in the audio. Using the correct language code improves transcription accuracy.
Supported Languages (Saaras v3 and v4)
Saaras v3 and Saaras v4 support the same 22 Indian languages with BCP-47 format codes. saaras:v4 additionally recognizes Global English alongside Indian English (en-IN):
Automatic Language Detection
To enable automatic language detection, pass unknown as the language_code parameter. The model will detect the language from the audio.
Best Practice: Always specify the language code when you know the language of the audio. This improves accuracy and reduces processing time. Use unknown only when the language is truly unknown.
Example Code
Saaras v3
Saaras v4
Still available. 22 Indian languages plus Indian English (en-IN).