Skip to main content
Language Detection identifies the language being spoken and scores its confidence in that answer. It produces no transcript, diarization, or enrichment data. The usual use is routing: read the language code off the response and send the audio to the matching downstream pipeline.

Language Detection (batch)

Returns application/json. Every field is always present.

Try it

What you can configure

Audio formats

Accepted extensions: .aac, .aiff, .flac, .mov, .mp3, .mp4, .ogg, .opus, .wav, .webm. Maximum file size is 100 MB. Empty files are rejected with 400.

Behavior and constraints

Only the first 30 seconds of audio are analyzed. Longer files are accepted and the remainder is ignored, so duration_ms can exceed the analyzed span. Aim for at least 3 to 5 seconds of clear speech at the start. Audio in a language outside the supported set returns the closest supported match, usually with low confidence.

Acting on the confidence score

confidence near 1.0 means the model committed to an answer. Near 0.0 means it could not. There is no universally correct threshold; set one against how much misclassification the application can absorb.

Supported languages

100 spoken languages are recognized: Afrikaans, Albanian, Amharic, Arabic, Armenian, Assamese, Azerbaijani, Bashkir, Basque, Belarusian, Bengali, Bosnian, Breton, Bulgarian, Cantonese, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Faroese, Finnish, French, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Korean, Lao, Latin, Latvian, Lingala, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar, Nepali, Norwegian, Nynorsk, Occitan, Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Sanskrit, Serbian, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sundanese, Swahili, Swedish, Tagalog, Tajik, Tamil, Tatar, Telugu, Thai, Tibetan, Turkish, Turkmen, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, Yiddish, Yoruba.

API reference