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

ScenarioRecommendation
You know the languageSpecify the language code — better accuracy, lower latency
Mixed Hindi+English audiolanguage_code="auto" — handles code-switching natively
Short clips < 5 secondsSpecify the language code for reliable detection