Skip to content

Glossary

Speaker diarization

Speaker diarization is the task of working out who spoke when in a recording, by splitting the audio into turns and grouping turns that come from the same voice. It is separate from transcribing the words, and a transcript gains speaker labels only when diarization is run alongside recognition.

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

Also called diarization, diarisation.

Speaker diarization answers the question "who spoke when?" in a recording. Google's documentation describes it as detecting when speakers change and labeling each voice detected in the audio with a number 1. It does not produce the words. Speech recognition writes what was said, and diarization adds which speaker said it.

Diarization groups the audio into turns, then labels the voices

A typical system works in four steps:

  1. Find the speech. A voice activity detector separates speech from silence and noise.
  2. Split into segments. The speech is cut at pauses and at likely speaker changes.
  3. Describe each segment's voice. The system computes a numerical summary of how each segment sounds, often called a speaker embedding.
  4. Cluster the voices. Segments whose summaries are close are grouped, and each group becomes one speaker.

For a two-person interview, the output might read "Speaker 1: Thanks for joining us. Speaker 2: Happy to be here." The labels are arbitrary numbers, so the system does not know the speakers' names unless they are supplied separately.

Joint models attach speaker labels to the words

Some systems run diarization as a separate stage after recognition. Others predict words and speakers together. Shafey and colleagues at Google described a joint model based on sequence transduction, and reported that it improved word-level diarization error rate from 15.8 percent to 2.2 percent, against a conventional baseline, on physician-patient conversations 2.

That score counts a word as an error when it is recognized correctly but tagged with the wrong speaker, or when it is a substitution with a wrong speaker label 3. The same authors note that this measure must be read together with word error rate, because it does not count deleted or inserted words.

Why it matters for dictation

If you dictate alone, you do not need diarization, because there is only one speaker. It matters for meeting notes, interviews, lectures and any recording with several voices, where a transcript without speaker labels is hard to follow.

Diarization is harder when people talk over one another, when voices sound alike, when the room is noisy, or when a speaker is brief. Language support is also uneven. Google's documentation warns that speaker diarization is not available for every language and points to its language support page 4, so check that page before you rely on speaker labels in a language you need.

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