Ground Truth.
AI, checked against the source.

How AI Labels Who Spoke When

2026-12-02 · Breach Protocol: Inside the AI Blackbox — full transcript

A ground-up guide to speaker diarization: how AI turns overlapping audio into anonymous speaker timelines, estimates how many voices there are, and how to judge the results. This audio was created with Boson AI's Higgs Audio — https://www.boson.ai/higgs-audio

Listen on Spotify · Watch on YouTube · Pocket Casts

What “Who Spoke When” Actually Produces

Eris: The team behind pyannote.audio introduced an open-source toolkit for building speaker-diarization systems. Diarization marks speech regions with speaker labels, answering “who spoke when?” <|prosody:pause|>The researchers compared individual components and complete pipelines on meeting, broadcast-news, and varied-domain recordings; results were strong on several tested tasks, not a guarantee for every kind of audio.

Vestra: Imagine a meeting recording turned into rows such as speaker one from this moment to that moment, then speaker two, with both rows active when their voices overlap. That output is a timeline, not a transcript. The labels are usually anonymous. “Speaker one” means one recurring voice pattern in this recording; it does not tell us the person’s name. The numbering is arbitrary, so a system could swap speaker one and speaker two throughout and still describe the same conversation correctly. Speaker identification is a separate task: it tries to match a voice against a known person, often using a voiceprint enrolled ahead of time.

Eris: Speech recognition answers a different question. It turns audio into words, such as “the meeting starts at noon.” Diarization adds the speaker and time information. A product can combine both, but a diarization timeline by itself does not know what anyone said, and a transcript by itself may not know who said each word.

Vestra: The National Institute of Standards and Technology’s Rich Transcription evaluations treated speech-to-text and “who spoke when” as distinct tasks, then later included speaker-attributed transcription that combines words with speakers. That history reflects the product distinction: recognizing the words and assigning them to voices are related jobs, but each can fail while the other succeeds. <|emotion:fear|>That separation matters when a transcript looks certain but the speaker match is not.

Eris: A concrete example makes the distinction useful. If a meeting note says “speaker two asked about the deadline,” diarization can support that only if the timestamped voice label is aligned with the words.

Vestra: And if the note says speaker two, can diarization alone tell us that’s Morgan?

Eris: No. It still cannot say that speaker two is Morgan unless a separate identification step supplies that match. <|emotion:relief|>I’m glad the limit is this clear: a label is not a name.

The Modular Route from Sound to Speaker Groups

Vestra: A common modular system starts by detecting speech. Voice activity detection marks portions of the audio as speech or non-speech. Silence should stay outside the speech regions, while quiet words at its edges still need to be caught. This gives later steps candidate regions to analyze, but if it misses a quiet phrase, the speaker system may never get a chance to label it. If it mistakes a cough or background sound for speech, later steps may have to explain a segment that should not be there. <|emotion:fear|>That first gate worries me because a missed phrase can disappear before speaker assignment even begins.

Eris: Then the audio is represented in short time frames, tiny slices that let a model ask what is happening as the sound changes. A speaker-change detector can mark likely transition points. As an illustration, an uncertain boundary could clip a quick reply or split one speaker’s sentence at a pause; those are possible errors in this kind of pipeline, not examples reported by the paper.

Vestra: For each speech segment, a speaker-embedding model creates an embedding: a learned list of numbers that summarizes voice characteristics useful for distinguishing speakers. The hope is that two segments from the same person produce similar summaries even when the words differ. Similar-sounding people can produce summaries that are hard to separate, and recording or noise variation can change the sound. So the summary is useful evidence, not a perfect fingerprint.

Eris: Clustering groups those summaries by similarity. If three turns sound alike, the system may group them under one anonymous speaker label. It has to decide where to draw the group boundaries. Similar-sounding people can be merged into one group; a single person whose voice changes across the recording can be split into two.

Vestra: The pyannote.audio paper describes re-segmentation as a way to refine the boundaries and speaker activity after an initial pipeline has made its guesses. It also treats overlap as its own signal: overlap means two or more people speak at the same time. A system that allows only one active speaker per segment cannot fully represent “Maya is speaking while Lee interrupts.”

Eris: In that example, the honest timeline has two active labels over the same stretch of audio. The modular design can detect that overlap and assign both speakers, or it can refine a first pass that missed the interruption. But the stages depend on each other: a missed phrase, a bad cut, or a misplaced embedding can change the later clusters. The paper describes jointly tuning pipeline settings because independently reasonable pieces do not automatically make the best combined system. <|emotion:surprise|>That’s the uncomfortable part: a sensible stage can still make the whole chain worse when it hands off a bad guess.

Vestra: This is one common design, not a required recipe for every product. Its advantage is that the steps can be inspected and adjusted. Its weakness is that an early mistake can travel downstream, and a hand-built chain has several boundaries where errors can accumulate. <|emotion:contentment|>Still, being able to inspect each stage gives you somewhere concrete to look when the timeline goes wrong.

One Model Can Track Several Active Voices

Eris: The end-to-end diarization paper changes the modular picture: instead of separately detecting speech, making voice summaries, and clustering them, one neural model predicts speaker activity across time directly from the audio features. “End-to-end” here means the model learns the mapping from its audio input to the diarization output as one connected system.

Vestra: Its output can be a set of activity scores for each time frame, one score per possible speaker label. If two people talk at once, both scores can be high at the same time. That is multi-label prediction: unlike a single-choice classifier, it can mark more than one answer as active in the same moment. The paper’s model was built to represent silence, one speaker, or overlapping speakers.

Eris: <|emotion:surprise|>There is a surprisingly simple training wrinkle. In one recording, the reference annotator might call the first voice speaker one and the second voice speaker two. Another perfectly valid annotation can reverse those names. If training compares the model’s first output slot only to the reference’s speaker one, it could punish a correct timeline just because the arbitrary numbering was swapped. <|prosody:pause|>So the slot names are bookkeeping, not identities—that distinction is doing real work here.

Vestra: The authors address that with permutation-invariant training. For each training recording, the loss calculation tries the possible mappings between predicted slots and reference speakers, then scores the mapping that fits best. In ordinary language, it asks, “Which consistent renaming makes these timelines agree?” The model learns the activity pattern without treating a harmless label swap as an error. <|emotion:amusement|>I like the neatness of that: the model can get the voices right even when the slot names trade places.

Eris: That changes what overlap means in the system. A clustering pipeline may first create segments under a one-speaker assumption and need extra work for collisions. This end-to-end model can learn from mixtures where two labeled speakers are active together and predict both. It still has to learn from the examples it receives; the authors’ experiments show that training conditions and overlap patterns matter.

Vestra: Their results are evidence for the approach in the tested settings, not a promise that one direct model beats every modular system. <|prosody:pause|>In the real telephone test, the model initially lagged both clustering baselines. Adapting it on recordings closer to the target conditions improved its results, but it still had higher diarization error than both baselines. That is a clear reminder that a simpler-looking architecture does not remove the need for representative training data. <|emotion:fear|>That result is sobering: the elegant training fix did not erase the mismatch with real calls.

Estimating How Many Voices Are in the Room

Vestra: Even after a system can track several active labels, it needs a way to decide how many labels to use. A fixed-capacity model has a set number of speaker output slots. That can work when the maximum is known, but a recording with more people than the model can represent runs into that ceiling.

Eris: A clustering system can choose its groups after it hears the recording, but it still needs a rule for deciding whether two voice summaries are close enough to join. Make that rule too strict and one person may become several labels. Make it too loose and different people may be merged. Providing a known speaker count can help, but then the system depends on that information being correct.

Vestra: The encoder-decoder attractor paper offers another approach. First, an encoder reads the sequence of audio embeddings. Then a decoder produces speaker representations called attractors, one after another, and estimates whether another attractor should be created. The model compares each time-frame embedding with those attractors to estimate which speakers are active. In effect, it proposes the number of voice groups while constructing the representations used to label them.

Eris: That is a useful bridge between the two families. It keeps end-to-end speaker activity prediction, but lets the output count grow based on the recording instead of fixing every recording to the same number. In the paper, the authors test this on simulated mixtures and real recordings; the results vary with the speaker count and recording set, and performance weakens for groups that were scarce in the adaptation data.

Eris: <|emotion:fear|>That weakens exactly where the adaptation data is thin, so the flexible count does not make the system equally ready for every group.

Vestra: A newer study, Dynamic Layer Fusion for End-to-End Neural Diarization, asks a different question: can the model make better use of information from several processing stages? Its training-only auxiliary branch learns to fuse representations from different Transformer layers for each moment of audio, while the main branch is used when making predictions. <|emotion:enthusiasm|>I like that division of labor: the extra branch helps during training without taking over prediction. The authors report better diarization scores than their self-attentive end-to-end baseline on simulated two-speaker audio and CALLHOME telephone conversations.

Eris: But that study uses a two-speaker setup. It is a new method study, not evidence that dynamic layer fusion is broadly superior for meetings with many speakers or for every acoustic setting. A model’s ability to count speakers and its ability to represent overlap are related, but they are separate requirements. <|emotion:determination|>I want to keep that boundary in view: counting speakers and fusing layers answer different questions.

Diarization in a Speech Product

Eris: In a finished-recording workflow, the product can send the audio for analysis and wait for the result. pyannote’s API tutorial shows a batch-style pattern: submit a publicly accessible audio URL, receive a job identifier, and later retrieve the output by polling or through a webhook. That is a vendor example of one service workflow, not a requirement for diarization in general.

Vestra: A streaming system has a stricter clock. It receives audio as the conversation happens and must emit labels before the recording ends. It also has to keep “speaker one” consistent as new turns arrive. pyannote’s model documentation describes a Live-1 WebSocket option and claims speaker tracking across arriving audio; the latency and capacity details are the vendor’s claims. <|prosody:pause|>The general challenge is that a live system has less future audio available than a batch system that can analyze the whole conversation. <|emotion:fear|>That missing future context is the hard part: a live label has to arrive before the whole conversation can settle it.

Eris: Words can come from a separate speech recognizer. Speech recognition supplies the transcript; diarization supplies speaker activity and timestamps. A product aligns those outputs by matching word times to the speaker-active intervals. If the word “yes” lands across a boundary or during an interruption, that alignment can be uncertain. Some transcription systems, including Mistral’s Voxtral description, generate text, timestamps, and speaker labels together, but that is a product design choice rather than the definition of diarization.

Vestra: The speaker configuration docs also make a practical trade-off visible. Regular diarization can preserve overlap, with two speakers active at once. The vendor’s “exclusive” output forces each instant into one speaker at most, which can simplify transcript alignment. It also discards the fact that another person was speaking at the same time, so a clean single-speaker transcript view is not always a faithful account of the audio.

Eris: And the labels still do not reveal names. To attach “Morgan” to speaker one, the product needs a separate identification step or a voiceprint enrolled for Morgan in advance. pyannote’s model page describes voiceprints for some of its models; that is a vendor feature claim. Without that extra link, “speaker one” remains an anonymous label for a recurring voice in this recording. <|emotion:relief|>I’m glad the product boundary stays visible: tracking a voice is not identifying a person.

Why Diarization Scores Can Disagree

Vestra: Diarization error rate, often shortened to DER, scores the timeline over time. It combines missed speech, false alarms where the system marks speech that is not there, and confusion where the speech is present but assigned to the wrong speaker. A small shift at a segment boundary can change which moments count as missed or extra speech, depending on the scoring setup. <|emotion:fear|>That boundary sensitivity matters because a score can move when the timeline shifts slightly.

Eris: That score tells us something important about timestamps and speaker assignment, but not everything a product may need. A captioning system may care about word accuracy; a meeting archive may care more about whether the right person gets credit; a live assistant may care about how quickly a label appears. No single score tells us whether the result is useful for every one of those jobs.

Vestra: Mistral’s technical post discusses a word-based alternative called concatenated minimum-permutation word error rate, or cpWER. It gathers each predicted speaker’s words into a transcript, tries the possible mappings between predicted and reference speaker names, and chooses the mapping with the fewest word errors. So it checks both whether words are right and whether they were attributed to the right speaker, while ignoring harmless numbering changes. <|emotion:enthusiasm|>That’s a useful change of lens: it scores the words and their speaker assignments together.

Eris: Mistral argues that this is less sensitive than DER to differences in how annotators place segment boundaries, because it compares the concatenated words. The company also shows that a rule-based merge of its own segments can alter the DER even though the underlying model predictions are unchanged. That is a useful caution about annotation style, but it is Mistral’s analysis, not independent proof that DER is always a poor metric or that cpWER is always preferable.

Vestra: cpWER has its own blind spot: because it focuses on the words after concatenation, it does not tell us whether a timestamp is late or whether two voices overlapped for a moment. DER and cpWER answer different questions. A fair comparison needs the same reference annotations, overlap policy, boundary tolerance, and text-normalization rules. Otherwise a score difference may reflect the scoring setup as much as the model.

Eris: In practice, test recordings that resemble the real use: quiet turns, quick interruptions, similar voices, background noise, different microphones and distances, and more than two speakers when that is possible. Listen to examples, inspect the timestamps, check whether one voice was split or two were merged, and see whether overlaps were preserved or flattened into a single-speaker format. <|emotion:determination|>I’d trust that inspection more than a tidy score in isolation.

Vestra: Also state the speaker-count assumption and the audio domain. A system tuned for clean phone calls may struggle in a reverberant meeting room, and a wrong count can change the labels. Keep a human correction path when attribution has consequences. The score is a useful map of particular errors; listening to representative examples tells you whether those errors matter for the product.

Closing

Eris: <|emotion:contentment|>That’s the path from a recording to anonymous speaker labels: detect speech, track voices across time, preserve overlap when the format allows it, then check the result against the job you need it to do.

Vestra: The separate news brief covers today’s other stories. For the sources behind this show, follow Ground Truth at groundtruth.day. <|emotion:affection|>Follow AI in Detail wherever you listen, and tell us which matters most in a speaker timeline: accurate words, speaker identity, or preserved overlap.