Skip to main content
Sunbird AI can automatically detect the language of a given text or audio file. This is useful for routing content to the correct translation or transcription pipeline.

Text Language Identification

Use the /tasks/language_id endpoint to identify the language of a text string.

Supported Languages

The classifier covers 64 languages — mostly African, plus English and French. A language is only reported when the model’s confidence clears the server-side threshold (default 0.35); below that, language is "language not detected" and confidence is null. text must be 3–200 characters.

Example Request

Response

confidence is the model’s 0–1 confidence in the identified language (omitted when the model does not report one). Filter on it if you want a stricter bar than the server’s threshold. When no language clears the threshold:

Audio Language Detection

Use the /tasks/auto_detect_audio_language endpoint to identify the language spoken in an audio file.

Example Request

Response