Provide a small list of likely languages when possible. It improves accuracy and reduces latency.
How to use language detection ?
- You know the language of the audio ahead of time.
- The audio is monolingual (single language throughout).
- You want the fastest, most accurate results.
When to use auto-detection
- You process audio in many different languages and don’t know which one beforehand.
- You want Gladia to pick the language automatically.
How to use language detection
You can either omitlanguage_config.languages (or pass an empty list) to search across all supported languages, or pass a constrained list:
language is returned on each utterance and can vary over time if you also enable code switching.
Tips
- Use supported languages to pick valid ISO 639-1 codes.
- Combine with
messages_config.receive_partial_transcriptsin real time to get immediate feedback. - For mixed-language conversations, enable code switching.