Speaker Diarization Explained
What speaker diarization is, how it differs from speaker identification, and how it works: the classic VAD, embedding, clustering pipeline vs end-to-end.
Part of Voice AI Explained. See every episode, in learning order, in How Voice AI Works: A Complete Guide.
Summary
What is Speaker Diarization?
Speaker diarization is the process of determining "who spoke when" in an audio recording, assigning anonymous labels (such as Speaker 0, Speaker 1, etc.) to different speakers. It is distinct from speaker identification, which matches a voice to a specific known person using a reference sample. Diarization produces a timeline of speaker turns that can be aligned with a text transcript.
How Diarization Works
There are two primary approaches to speaker diarization:
- The Classic Pipeline: This method involves three steps:
- Voice Activity Detection (VAD): Finding and isolating speech while removing silence and noise, then cutting the speech into short segments.
- Speaker Embedding: A model analyzes each segment to generate a "voiceprint" (a list of numbers representing the characteristics of the voice).
- Clustering: Grouping similar voiceprints together. The system must estimate the number of speakers; grouping too loosely merges different speakers, while grouping too strictly splits a single speaker's turns.
- End-to-End Models: A single neural network processes the audio and directly outputs who is speaking frame-by-frame. This approach natively handles overlapping speech (when multiple people talk at once) but is typically limited to a fixed maximum number of speaker slots (such as 4 or 8).
Open-Source Examples
- NVIDIA NeMoTron 3 Diarization: An end-to-end model supporting up to 8 speakers. It can run offline or streaming (with a recommended delay of about a third of a second) and uses open weights.
- PyAnnote (Community-1): A pipeline-based model that uses segmentation, voiceprints, and clustering. It employs a small end-to-end model in its first step to detect overlapping speech. It is designed for complete recordings.
Measuring Accuracy and Common Challenges
Diarization accuracy is measured using the Diarization Error Rate (DER), which calculates the total time of missed speech, false alarms, and speaker confusion divided by the total reference speech time. Diarization systems commonly struggle with:
- Overlapping speech
- Quick speaker turns (within 0.5 seconds of a change)
- Similar-sounding voices
- Far-away or table microphones compared to close-up headsets
- Recordings with a high number of speakers
Relevance for Voice Agents
Voice agents often do not require diarization if the agent and the caller are recorded on separate audio channels. Diarization becomes necessary when multiple speakers share a single channel (such as on a speakerphone or in a meeting). When implementing diarization, developers should note that streaming diarization is generally less accurate than processing a full recording, and voiceprints may be classified as biometric data requiring explicit user consent under regulations like GDPR.
Full transcript
Speech-to-text gives you the words, but on a call with three people, who said what? Finding who spoke when has a name: speaker diarization. Today, how it works, step by step, with two open models as examples: NVIDIA NeMo 3 Diarization and pyannote. One note, pyannoteAI has sponsored Voice AI Space in the past. Neither company paid for this video, and NVIDIA has no tie with us.
Voice AI Space makes honest videos to help developers and curious people upskill in Voice AI.
Diarization cuts a recording into turns and labels each one: Speaker 0, Speaker 1, Speaker 2. The labels are anonymous. The model doesn't know that Speaker 0 is Alice. For that, you usually need a sample of Alice's voice to compare against. That's speaker identification, a separate step. And it doesn't write words. It gives you a timeline of who spoke when, which you line up with the transcript.
Here's the idea in one picture: Cut the recording into short clips, describe each clip's voice, then sort the clips into piles that sound alike. Each pile is one speaker.
The classic pipeline does exactly that in steps. First, find the speech. Voice activity detection marks where someone is talking and drops silence and noise. Then, cut the speech into short pieces—short enough to hold just one voice, but long enough to recognize it.
Next, a speaker embedding model listens to each piece and turns it into a list of numbers—a few hundred of them. Think of it as a voiceprint. Two pieces from the same person get similar numbers. Two different people get different ones. It doesn't capture the words; it captures how someone sounds.
Then, clustering puts similar voiceprints in the same group. Each group becomes one speaker. The hard part: Nobody tells the system how many people are talking. It has to decide where one group ends and the next begins. Too loose, and two people merge into one. Too strict, and one person splits into two. If you know the number of speakers, pass it in. Many tools accept it.
The classic pipeline's weak spot is overlap. When two people talk at once, one piece holds two voices. And in meeting recordings, a tenth of the talking time or more can be overlap.
End-to-end models take another route. One neural network listens to the audio, and for every tiny slice of time, says yes or no for each speaker slot. Two slots can say yes at once, so overlap is built in. The catch: Most of these models have a fixed number of slots, often four or eight. They can only follow that many speakers.
Our two examples take these two routes. NVIDIA NeMo 3 Diarization, released in September 2026, is end-to-end. One network, up to eight speakers, offline or streaming, with a recommended delay as low as about a third of a second, plus computing time. The weights are open, and it runs with NVIDIA NeMo Toolkit or the Hugging Face Transformers library.
pyannote is a pipeline. It started as an open-source research toolkit at France's CNRS, led by Hervé Bredin. Its latest open model, Community-1, uses segmentation, voiceprints, and clustering. Its first step is a small end-to-end model on short windows, so it can mark overlap, too. The code is MIT-licensed, and the model weights are CC BY 4.0. The open pipeline works on complete recordings. The company behind it, pyannoteAI, sells commercial models through an API, including a streaming one.
Both give anonymous labels, and each one reports its accuracy on its own test setup, so don't put their numbers side by side. Test on your own audio.
Accuracy is measured with the diarization error rate, or DER. It adds up three kinds of mistakes: Missed speech (someone talked and the system heard nothing), false alarm (it labeled speech where there was none), speaker confusion (right time, wrong speaker). Take a 30-second clip with 28 seconds of speech: The system misses three seconds, adds one second that isn't speech, and gives two seconds to the wrong person. That's six seconds of errors out of 28—a diarization error rate of about 21%. One detail: Some benchmarks forgive a quarter of a second on each side of every boundary, and some don't. So check how a number was measured before you compare it.
Diarization struggles in the same few places. Overlap, as we saw. Quick turns: In one older study of meeting systems, at least 40% of the errors fell within half a second of a speaker change. Similar voices. Far-away microphones: pyannote's older model, version 3.1, goes from about 19% errors on headsets to about 23% on a meeting's table microphone. And many speakers: An earlier NVIDIA model, built for four speakers, had about 13% errors on recordings with up to four people, and about 43% on recordings with five or more.
So, does your voice agent need diarization? Often, it doesn't. On a phone call, many phone providers can record your agent and the caller on separate channels. Two channels, two speakers, no guessing. You need it when several people share one side: A speakerphone, a meeting, a family calling together, or when you analyze mixed recordings after the call.
Then line it up with the transcript. Tools like NVIDIA NeMo or WhisperX give each word a timestamp, then a speaker. Some models offer an exclusive mode—one speaker at a time—to make that easier.
Streaming diarization works, but it's less accurate than running on the whole recording. And careful: A voiceprint used to identify someone counts as biometric data in Europe and in some US states. Get clear, written consent first. Episode 16 covers the basics.
To recap: Diarization answers who spoke when with anonymous labels. The classic pipeline finds speech, makes voiceprints, and clusters them. End-to-end models handle overlap, usually up to a set number of speakers. Measure with DER on your own audio, and if you can record each side on its own channel, do that first.
Want another deep dive like this one? Tell us the topic in the comments. If we got something wrong, tell us—corrections get pinned. And you'll find Voice AI products sorted by role in the Voice AI Space library.
Related Content

Noise and Echo in Voice Agents, Explained

How Voice Agents Use Tools Mid-Call

How Speech-to-Speech AI Models Work

On-Device Voice AI: What Runs Locally

Build or Buy a Voice AI Agent?

Is Your AI Voice Agent Legal? 5 Rules

Voice AI Agent Cost Per Minute (2026)

How to Test a Voice Agent (2026)