Models & Languages
Language Detection (Auto Mode)
How language_code="auto" works and when to use it.
How auto-detection works
Set language_code="auto" to have the model detect the language automatically. Auto-detection works best on audio longer than 5 seconds. For shorter clips, specifying the language code explicitly improves accuracy.
python
config = TranscriptionConfig(model="zero-indic", language_code="auto")Auto vs explicit
| Scenario | Recommendation |
|---|---|
| You know the language | Specify the language code — better accuracy, lower latency |
| Mixed Hindi+English audio | language_code="auto" — handles code-switching natively |
| Short clips < 5 seconds | Specify the language code for reliable detection |