Turn it on
Sendmodel=prisma-v3.0 with language_code=indic-auto, and read detected_language_code in the reply. This example uses the Tamil sample clip:
language_code=hi-IN,en-IN (1 to 4). They are a hint for the model, not a limit.
Examples
Hosted sample clips (synthetic, Timbre v3.0), sent to Prisma v3.0 on REST with no other options:- With the wrong hint, the Tamil clip is still transcribed in Tamil and tagged
ta-IN. - The Marathi clip is told apart from Hindi, though both use the Devanagari script.
- A Hindi sentence with English words is tagged
hi-IN. To control how the English words are written, set the output style;format=codemixkeeps them in Latin letters.
By interface
- REST
- Realtime
- Batch
Form field
language_code on POST /stt/v3, with model=prisma-v3.0. The reply carries detected_language_code for the whole clip.By model
Rules and limits
Things to watch for
- The tag comes from the script of the transcript, not from what you sent. Send
ta-INand get an English answer, and the tag isen-IN. - No tag for an empty transcript, a transcript of only digits or punctuation, text in a script the API does not map (such as Urdu or Odia), or
format=transliterate, whose output is always in Latin letters. Read it with.get()rather than assuming it is there. - Hindi and Marathi share a script, so a very short utterance (a greeting, a name, a number) may be tagged
hi-IN. If you know which one to expect, send only that code. - Mostly-English speech with a short native phrase can be tagged
en-IN: the native-language tag needs at least 30 % of the letters to be in the native script. - With
format=transliterate, a list of languages is ignored and the language is detected automatically. - Python SDK. For a list of languages, the SDK takes
language_code="indic-auto"withlanguage_candidates=[...](2 to 4) instead of a comma-separatedlanguage_code.
Related
Language detection on Prisma v3.0
How the tag is worked out, in more detail.
Supported languages
Every language code, with its script.
Choose an output style
How English words and numbers are written in a mixed-language transcript.
Improve names and terms
Help the model spell names and domain words.

