Technology

Speaker diarization

Karsten B. Kreh Karsten B. Kreh Updated on

Also known as: speaker separation, speaker diarisation

Speaker diarization is a method that divides a recording into sections and assigns each section to a speaker without knowing the speaker’s identity. Other names are speaker separation and speaker diarisation. The result answers the question of who spoke when. It complements speech recognition, which answers only what was said.

How it works

Park et al. (2022) describe the task in their review article as “who spoke when”: a program labels a recording with markers that show which speaker is active in which period. The method reads no words. It works only with features of the voice.

The widely used toolkit pyannote.audio carries this out in three stages, which Bredin (2023) describes for version 2.1. In the first stage, a neural network runs in short, sliding windows over the recording and marks speech, pauses, speaker changes and places where several people talk at the same time. In the second stage, a second network calculates a voice embedding for each speech section, which is a sequence of numbers that describes the timbre of the voice. In the third stage, a clustering method groups similar voice embeddings into one speaker. Bredin et al. (2019) already presented the individual building blocks for this in the first version of pyannote.audio: voice activity detection, detection of speaker changes, detection of overlapping speech and voice embeddings.

The user can set the number of speakers, or the program estimates it from the distance between the voice embeddings. The model card of the pipeline speaker-diarization-community-1 names the parameters num_speakers, min_speakers and max_speakers for this. The result is a list of time sections with anonymous labels such as SPEAKER_00. After the download, the pipeline runs without an internet connection.

A transcript with speaker assignment exists only once a program combines the time sections of the speaker diarization with the word timestamps of the speech recognition. Each word receives the speaker in whose time section it falls.

Relevance for transcripts in a forensic context

A transcript from an interview, an expert examination or a telephone surveillance is usable only if every statement is assigned to the right person. Speaker diarization provides this assignment as a proposal with a measurable error rate.

The error measure is called the diarization error rate (DER). The pyannote.metrics documentation defines it as the sum of three shares, divided by the total speech duration in the reference material: speech that the program counted as a pause, pauses that it counted as speech, and speech that it assigned to the wrong speaker. Because even a human annotator does not place the boundary of a speaker change to the millisecond, this documentation excludes a margin of 250 milliseconds before and after each boundary from scoring. For the freely available pipeline community-1, the model card gives a DER of 17.0% on the AMI meeting corpus, 11.2% on VoxConverse and 20.2% on DIHARD 3. In a conference recording, about one sixth of the speech duration is therefore assigned wrongly, wrongly counted as a pause or invented from a pause.

Our own measurements show where the errors arise. In the measurement series for the article “Speech recognition in 2026” (Kreh, 2026), the word error rate for two Bundestag debates with few interjections was 0.21 and 0.233. For meetings from the AMI corpus, in which the participants talk over each other, it was between 0.41 and 0.48. Conversational discipline decided the result. The number of speakers did not. When people speak at the same time, text is lost, and this applies to every model known to the author. For the automatically estimated number of speakers, the same series gave only four data points: in both Bundestag files the program found three speakers, which fits the situation, and for multilingual press conferences with few people on the podium it reported eight. A reliable statement on the number of speakers cannot yet be derived from this.

For work on the transcript this means the editor checks every speaker change against the audio before quoting the transcript. The editor sets the number of speakers when it is known. The editor also treats places with simultaneous speech as a gap in the wording.

Speaker recognition is the name of the memozero function that runs speaker diarization with pyannote.audio on the user’s computer. It assigns labels such as “Speaker A” and detects speaker changes. It does not establish identity. It does not create speaker profiles across several recordings.

Speaker identification assigns a voice to a known person and needs comparison material and an expert in forensic phonetics for this. Speaker diarization does not establish identity and does not replace a voice comparison report.

Word timestamps come from the speech recognition and state when a word was spoken. Speaker diarization supplies the time sections for each speaker. Both results are linked through the time axis.

Frequently asked questions

Does speaker diarization recognise who a person is?

No. The method detects that the voice changes and groups similar-sounding sections into one anonymous speaker. The editor assigns a name or a role, in memozero by renaming the label in the editor.

Why is the estimated number of speakers often wrong?

The clustering method separates speakers by the distance between their voice embeddings. Two similar-sounding voices then merge, and a voice that speaks once close to the microphone and once far from it splits into two speakers. In the measurement series by Kreh (2026), the program reported eight speakers for press conferences with few people. Anyone who knows the number of speakers sets it.

What happens when two people speak at the same time?

Since its first version, pyannote.audio has contained detection of overlapping speech (Bredin et al., 2019). The speech recognition still cannot separate the overlapping words cleanly, and in the measurement series by Kreh (2026), text is lost at such places. The editor listens to these places again in the audio and marks them in the transcript.

Sources

  1. Bredin, H. et al. (2019): pyannote.audio: neural building blocks for speaker diarization. arXiv:1911.01255. https://arxiv.org/abs/1911.01255
  2. Bredin, H. (2023): pyannote.audio 2.1 speaker diarization pipeline: principle, benchmark, and recipe. Interspeech 2023, pp. 1983 to 1987, doi:10.21437/Interspeech.2023-105. https://www.isca-archive.org/interspeech_2023/bredin23_interspeech.html
  3. Park, T. J. et al. (2022): A Review of Speaker Diarization: Recent Advances with Deep Learning. Computer Speech & Language, vol. 72. https://arxiv.org/abs/2101.09624
  4. pyannote.metrics, documentation, section Diarization error rate. https://pyannote.github.io/pyannote-metrics/reference.html
  5. pyannote (2025): Model card speaker-diarization-community-1. https://huggingface.co/pyannote/speaker-diarization-community-1
  6. pyannote (2025): pyannote-audio, README with benchmark table. https://github.com/pyannote/pyannote-audio
  7. Kreh, K. B. (2026): Speech recognition in 2026: what actually works on your own computer. memozero blog, 10 August 2026. https://memozero.io/en/blog/speech-recognition-2026-on-device/