Skip to content

Glossary

Spoken language identification

Spoken language identification is the task of working out which language is being spoken in a recording. Products call it automatic language detection. It usually chooses from a short list of candidate languages and decides for a segment of audio rather than word by word.

Updated October 17, 20264 cited facts, each traced to its source

Also called language identification, LID, automatic language detection.

Spoken language identification, often shortened to LID, is the step that works out which language is being spoken in a recording. Products call the same step automatic language detection. A recognizer can run LID first and then load the matching model, or it can check the language as it transcribes. Either way, the result decides which vocabulary and sound patterns are used to write the words down.

Detection works from a list of candidate languages

Most systems do not consider every language on earth. They compare the audio against a set of candidate languages, and the list is limited. Azure Speech's continuous language identification accepts up to 10 candidate languages, while its at-start mode accepts up to four 1. A narrow list makes the choice easier, and a wrong list can force a wrong answer.

A detector can only pick languages it was trained on

A detector cannot recognize a language that never appeared in its training data. The Whisper paper says its training data contains no speech for 20 of the 102 languages in the FLEURS benchmark, and the paper says this caps its language identification accuracy at 80.4% 2. For speakers of languages with little training audio, detection is therefore less reliable, and so is the transcript that follows it.

Detection usually decides per segment, not per word

Most systems decide once for a stretch of speech. The faster-whisper library, for example, has a setting that controls how many segments are considered for language detection 3. A detector that decides once for a segment will not notice a switch inside that segment. Azure's continuous mode behaves the same way, as the code-switching entry explains.

Why it matters for dictation

If detection chooses the wrong language, the transcript is often a set of near-miss words in the wrong language rather than a clean error. Google says automatic language detection is turned on by default in Gboard's advanced voice typing, on supported languages 4. That default helps when you switch between sessions. It is less useful inside one sentence. If you always dictate in one language, set it by hand, because a fixed choice removes one source of error.

How it relates to other terms

Detection is a separate step from transcription. A tool can identify the language correctly and still transcribe it badly, because the accuracy of the recognizer is a different measurement. For that, see word error rate, and for languages with little data, see low-resource language.

Related terms

Guides that cover it

Evidence

Every number on this page, with where it comes from. Open a fact to see the exact words in its source.

  1. 1.
  2. 2.
  3. 3.
  4. 4.

Related terms

Pages that use this term