---
title: "Diarization: Meaning and How Speaker Diarization Works"
description: "Diarization meaning, explained: how speaker diarization labels who said what in audio, which models and tools exist, and how to use it in your app."
url: https://exemplary.ai/blog/diarization
published: 2022-11-18
updated: 2026-11-26
author: "Shantanu Nair"
publisher: "Exemplary AI (https://exemplary.ai)"
---

# Diarization: Meaning and How Speaker Diarization Works

Diarization is the process of splitting audio with more than one speaker into segments and labelling each segment with who is speaking, so a recording becomes "who spoke when". In a speech-to-text pipeline, speaker diarization is the step that turns one long block of text into a transcript with Speaker 1, Speaker 2 and timestamps.

The word comes from "diary": the system keeps a running record of who spoke and when. It does not know anyone's name. It only separates voices and gives each one a label, and a person or a later step can attach real names afterwards. For a short definition aimed at editors, see the [diarization entry in our glossary](https://exemplary.ai/video-editing-terms/diarization). This post goes further: how diarization works under the hood, which models and tools exist, and how to use it in an app.

## Why diarization matters for conversational audio

Podcast sessions, call centre calls, doctor-patient visits and team stand-ups are all long-form conversations, and all of them need diarization. Without it, a transcript is one long run of text. You cannot tell a question from an answer, you cannot quote a person, and any system reading the transcript afterwards cannot model a conversation at all.

Speech-to-text has had plenty of attention, and resources for it are easy to find. Diarization has been harder to get into production. It sits closer to speech research, and much of what you find online is academic. That makes it an easy piece to overlook, even though it decides how usable a transcript is for the person reading it.

![diarization-vs-no-diarization.png](https://exemplary.ai/img/blog/diarization/diarization-vs-no-diarization.png)

Most ASR providers offer diarization as a "speaker labels" option, usually with little room to customise it. Using a provider is still the sensible default for most teams, but knowing how diarization works helps you choose well and debug it when a transcript mixes up two speakers.

## How speaker diarization works

A diarization engine answers one question over and over: does this slice of audio sound like the same voice as that one? There are two main designs, and the older one is still the most common.

### The classic pipeline: segment, embed, cluster

Traditionally, diarization runs in three stages.

1. **Voice activity detection (VAD).** The system finds the stretches of audio that contain speech and drops silence and background noise. What is left is a set of short speech segments.
2. **Embedding.** Each segment is turned into a "voice fingerprint", a vector of numbers describing the characteristics of the voice in it. Segments from the same person should end up close together.
3. **Clustering.** A clustering algorithm groups the embeddings by similarity. Each group becomes a speaker label, and the number of groups is the number of speakers the system thinks are in the audio.

Some formatting and clean-up follows, and the result is a transcript with timestamps and speaker labels.

![diarization-clustering-overview.png](https://exemplary.ai/img/blog/diarization/diarization-clustering-overview.png)

[Image Source: Nvidia NeMo Docs](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/asr/speaker_diarization/intro.html)

Clustering works best when the whole recording is available. Doing it on live audio is much harder, because the system has not heard every speaker yet and has few samples to cluster on. That is why diarization is usually run after the full audio is in, not while it streams.

### End-to-end neural diarization

The clustering approach has two known weak points. The pipeline is hard to tune against diarization errors, because each stage is tuned separately. And it handles overlapping speech badly, since each segment is assigned to exactly one cluster.

End-to-end neural diarization (EEND) takes a different route. A single neural network is trained to take a multi-speaker recording and output speaker labels directly, overlaps included. There is no separate VAD or embedding stage to tune, and the model can be trained to minimise diarization error itself.

The trade-off is training data. Clustering systems can be trained from speaker labels with timestamps. End-to-end systems need speaker-aware transcripts, with both the speaker labels and the text, so they need more complete data.

Both designs work well and both have improved a lot. Many current systems mix the two, for example by using a neural model to handle overlap on top of an embedding stage.

## What makes diarization hard

A few conditions trip up almost every system. Knowing them helps you set expectations and prepare audio.

- **Overlapping speech.** When two people talk at once, a one-label-per-segment system has to pick one of them.
- **Short turns.** "Yes", "right" and "mm-hm" give the embedding stage very little voice to work with.
- **Similar voices.** Two speakers of the same gender and similar pitch are easier to merge into one cluster.
- **Unknown speaker count.** If the system guesses the number of speakers wrong, it splits one person in two or merges two people into one. Many tools let you pass the expected number of speakers, which usually helps.
- **Poor audio.** Echo, background noise, and a single room microphone shared by several people all blur voices together.
- **Phone and call audio.** Narrow-band, compressed audio carries less voice detail than a studio recording.

Separate microphones or channels per speaker remove most of this. If you record the conversation yourself, record each person on their own track when you can.

## Diarization models and open-source tools

If you are solving a business problem rather than researching diarization, use a cloud provider. If you want to see what is out there, or the effort of a custom system is worth it to you, these are the main open-source options. All of them need a team with real speech expertise, plus time to test and experiment.

- [Google's UIS-RNN](https://github.com/google/uis-rnn): a neural diarizer for fully supervised diarization. It ships without pretrained models, so you have to train it yourself.
- [Pyannote](https://github.com/pyannote/pyannote-audio): likely the easiest to get running. It comes with notebooks, simple examples and pretrained models, plus a training pipeline notebook. It also supports detecting more than one speaker in a segment. If you want to run diarization yourself without getting into the weeds of research, this is where most people start.
- [NVIDIA NeMo's models](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/asr/speaker_diarization/models.html): a toolkit for research and production, with the most to offer a team that wants to run experiments and large-scale training. It expects you to know speech technology and PyTorch. The ECAPA-TDNN and TitaNet embedding models perform well and come with pretrained weights, and the multiscale diarization decoder supports end-to-end training and speaker overlap. You will have to build the production pipeline around it yourself, including preprocessing, since diarization usually runs after the transcript is generated.

If you want to dig deeper, there is [an excellent Udemy course](https://www.udemy.com/course/diarization/) by Dr. Quan Wang, a Senior Staff Software Engineer who led the Speaker, Voice and Language team at Google. [Desh Raj's blog](https://desh2608.github.io/blog/) is also worth reading. He is a PhD student at Johns Hopkins University, where the Kaldi ASR toolkit was developed, and he covers diarization topics including recent papers.

## Speech to text with speaker diarization through a provider

Cloud ASR providers such as Deepgram, AWS and AssemblyAI all offer diarization alongside transcription. In practice, you send audio and get back text with timestamps and a speaker label per segment or per word. The catch is that every provider formats the response differently, and implementation details are often opaque.

That is the gap our [Unified API](https://exemplary.ai/unified-api) fills. Switching between providers becomes a change of a parameter in a request, and speaker diarization response formats are normalised for you, so you can test each provider's results on your own audio without being locked into one. Diarization is rarely perfect, so it also helps to have a way to fix mislabelled speakers and edit the text. Our transcript editor does that, and together with the SDK it gives you the building blocks for a conversational app.

A practical way to choose:

1. Collect a handful of your own recordings, with the real mix of speaker counts and audio quality.
2. Run them through two or three providers with diarization on.
3. Read the transcripts, not just the labels. Check short turns, overlaps and the moments where speakers change.
4. Pick the one that mislabels least on your audio, and plan for a quick human correction pass on the rest.

## Frequently asked questions

### What does diarization mean in speech recognition?

Diarization means working out who spoke when in a recording with several speakers. The system splits the audio into segments and tags each with a speaker label such as Speaker 1 or Speaker 2.

### Does speaker diarization know who the speakers are?

No. Diarization only tells voices apart. It labels them Speaker 1, Speaker 2 and so on. Naming them is a separate step, either done by a person or by matching voices against known samples.

### What is the difference between diarization and transcription?

Transcription turns speech into text. Diarization works out who is speaking in each part. Most speech-to-text with speaker diarization setups run both and merge the results into one labelled transcript.

### Can diarization work on live audio?

Yes, but it is harder. Clustering needs to hear all the speakers to group them well, so results on streaming audio are usually less stable than on a finished recording.

### Does diarization handle people talking at the same time?

Yes, to a degree. Older clustering pipelines assign each segment to one speaker, so overlaps are weak spots. End-to-end neural models and some newer tools handle overlap better, though it remains one of the hardest cases.

Check out our [website](https://exemplary.ai/) and [docs](https://exemplaryai.readme.io), and feel free to [schedule a meet or demo](https://exemplary.ai/demo). Stay tuned for [more on the blog](https://exemplary.ai/blog).

> Exemplary AI is a browser-based AI tool that turns long videos and recordings into short captioned clips, transcripts in 99 languages, subtitles, translations into 116 languages, and written posts such as summaries, blog posts and YouTube chapters. It is built for YouTubers, podcasters and marketing teams; the Free plan includes 300 one-time credits with watermarked video exports. Pricing: https://exemplary.ai/pricing
