Glossary
Speaker diarization
Speaker diarization is the process of splitting an audio recording into segments by speaker, so a transcript shows who spoke when.
Speaker diarization is the process of dividing an audio recording into segments according to who is speaking, answering the question “who spoke when”. A diarization system listens to a recording with several voices and returns a timeline: speaker A from 0.0 to 12.4 seconds, speaker B from 12.4 to 19.8 seconds, speaker A again, and so on. It does not know people’s names by default. It groups stretches of speech that sound like the same voice and gives each group an anonymous label. Combined with speech recognition, diarization turns a block of transcribed words into a readable conversation with turns, which is what most meeting notes, call analytics and interview tools need.
How speaker diarization works
Most diarization systems follow the same broad sequence, whether they are built from separate components or trained as a single model.
Finding speech. The first step is voice activity detection, which marks where anyone is speaking and discards silence, music and background noise. Mistakes here carry through everything that follows: speech missed at this stage never gets a speaker, and noise wrongly kept may be assigned to one.
Segmenting. The speech regions are cut into short segments, typically one to two seconds long, often with overlap. Some systems also run speaker change detection, which looks for the points where one voice stops and another starts, so that a segment is less likely to straddle two people.
Embedding each segment. Each segment is passed through a speaker model that produces a fixed-length vector describing the voice rather than the words. These speaker embeddings, known in the research literature as i-vectors, x-vectors or more recent neural variants, are trained so that two segments from the same person land close together and segments from different people land far apart. The idea is the same as the text and image embeddings used in semantic search, applied to the sound of a voice.
Clustering. The system then groups the embeddings. Agglomerative clustering, spectral clustering and probabilistic methods are all common. If the number of speakers is known in advance, for example two on a support call, the clustering can be told to produce exactly that many groups. If it is unknown, the system has to estimate it, which is one of the main sources of error.
Resegmentation and alignment. A final pass refines the boundaries between speakers and, when a transcript is available, aligns each word to a speaker using word-level timestamps. The output is the transcript text with a speaker label on every word or utterance.
End-to-end neural diarization takes a different route. A single network reads the whole recording and predicts, frame by frame, which speakers are active. Because it predicts each speaker independently, it can mark two people as talking at once, which the clustering approach struggles with. Many production systems now combine the two: neural models for local decisions and overlap, clustering to link speakers across a long recording.
Diarization and transcription together
Diarization and speech to text are separate problems that are usually sold together. Speech recognition decides which words were said. Diarization decides whose voice said them. A system can be good at one and poor at the other, and they fail differently: a transcript can have every word right and still attribute the key sentence to the wrong person.
There are two ways to combine them. In the first, recognition and diarization run independently and their outputs are merged by timestamp, so each recognised word takes the label of the speaker segment it falls inside. This is simple, but words near a speaker change can land on the wrong side. In the second, a joint model produces words and speaker labels together, using what is being said as an extra clue to who is saying it. A question followed by an answer is likely a speaker change, even if the voices sound similar.
Either way, the result is what most people mean when they ask for a transcript of a meeting. Audio transcription without diarization gives a single block of text, which is fine for a lecture or a podcast with one host but hard to read for anything with more than one voice.
Measuring diarization quality
The standard measure is diarization error rate (DER): the share of total speech time that is attributed wrongly. It adds up three kinds of error.
Error type | What it means | Common cause |
|---|---|---|
Missed speech | Someone was speaking but the system labelled it as silence | Quiet speakers, aggressive voice activity detection |
False alarm | The system labelled noise or silence as speech | Background noise, music, keyboard sounds |
Speaker confusion | Speech was detected but given to the wrong speaker | Similar voices, short turns, overlap |
DER is measured against a human-labelled reference, usually with a short forgiveness collar around each speaker change so that a boundary a fraction of a second out is not counted as an error. Published DER figures vary widely by dataset. Clean two-person telephone calls score far better than meetings recorded on a single far-field microphone, and results with and without a collar, or with and without overlapping speech scored, are not comparable. A second measure, the Jaccard error rate, weights each speaker equally, which matters when one person dominates a recording and a quiet participant is mislabelled throughout.
For products built on transcripts, DER alone can mislead. What users notice is whether the transcript reads correctly, so many teams also score word-level speaker attribution: of the words recognised correctly, how many carry the right speaker label. That joins diarization quality to the word error rate of the recogniser, and it is closer to what a reader experiences.
Where diarization goes wrong
Diarization is harder than it sounds, and the failure cases are predictable.
Overlapping speech. People interrupt, agree out loud and talk over each other. Clustering systems assign each moment to one speaker, so overlap is either dropped or given to whoever is louder. Overlap-aware models help, but crosstalk in lively meetings remains the largest single source of error.
Short turns. A one-word reply such as “yes” or “right” gives the speaker model very little audio to work with, so short turns are often merged into the surrounding speaker.
Similar voices. Two speakers of the same age, gender and accent can produce embeddings close enough to be clustered together, especially on compressed audio.
Unknown speaker counts. Estimating how many people are present is error-prone. Overestimating splits one person into two labels; underestimating merges two people into one. Where you know the count, pass it in.
Audio quality. Narrowband telephone audio, a low sample rate, heavy compression and echo all blur the differences between voices. A single conference-room microphone several metres from the speakers performs worse than individual headsets, and separate audio channels per participant, where available, sidestep much of the problem.
Long recordings. The same person may sound different after a break, on a different microphone or when they move away from the table. Labels can drift over a multi-hour recording, so speaker A in the first hour is not reliably speaker A in the third.
Naming speakers
Diarization outputs anonymous labels. Turning “speaker 2” into a named person is a separate step, usually called speaker identification. It needs enrolment: a short sample of each known person’s voice, turned into a reference embedding and compared with each cluster. Contact centres, where the agent is always known, and recurring internal meetings, where the participant list is predictable, are the common cases.
Other signals help where enrolment is not available. Meeting platforms often know which participant’s microphone was active. A transcript may contain “thanks, Priya” just before a speaker change. Calendar invitations list who was expected. Many products combine these clues with diarization labels rather than relying on voice alone.
Voice data is sensitive. A stored voiceprint can identify a person, and several jurisdictions treat biometric identifiers as a special category of personal data with consent and data retention requirements. Teams adding speaker identification should route the design through their own legal and privacy review before storing enrolment samples.
Why diarization matters for AI agents
For an AI system, who said something is often as important as what was said. A meeting assistant that records “we will ship on Friday” needs to know whether the engineering lead or a sales manager said it before turning it into an action item. A sales copilot reviewing a call needs to separate the customer’s objections from the rep’s pitch. A support agent analysing past calls needs the customer’s stated problem, not the agent’s paraphrase of it.
Diarized transcripts also make downstream extraction more accurate. Named entity recognition can attach a company or date to the person who mentioned it, and entity resolution can link “speaker 2” in one call to the same customer in the next. When facts from conversations are written to agent memory, speaker attribution decides whose preference or commitment is being stored. A memory that says “prefers net-60 terms” is only useful if it is attached to the customer who said it.
Speaker labels also improve search. With diarization, audio search can answer “what did the customer say about pricing” rather than returning every mention of pricing from both sides of the call. The same applies to conversational memory systems, which work better when each turn carries a speaker.
Speaker diarization with Exabase
Exabase handles recorded audio and video as part of its extraction and storage layer. Exabase Extract accepts audio and video files or URLs at one endpoint and returns a transcript with timestamps, split into chunks that carry timeStart and timeEnd in seconds, as the retrieving results guide shows. Each chunk keeps its place in the recording, so a passage can be cited, linked to the exact moment or passed to a model with its context. The audio transcription tool and video transcription tool show the output for a single file.
Exabase’s documentation describes transcripts with speaker timestamps. Teams whose product depends on detailed speaker turns, overlap handling or named speaker identification should check the extraction overview for the speaker fields returned, and can run a dedicated diarization service alongside where they need more than that. Exabase then stores and searches the result either way.
Audio and video saved as Resources are transcribed and indexed automatically, and Deep Search searches the spoken content by meaning, with keyword matching built in, returning timestamp ranges with every hit. Facts that come out of conversations can be written to Exabase Memory, scoped per customer or per user with a Base, so an agent remembers what each person said across calls. The asset search solution and the file extraction solution describe both halves of the setup, and meeting assistants and call transcript analysis show where it is used.
For live audio, Exabase is the memory and search layer rather than the recogniser. A streaming speech provider handles diarization in real time, and Exabase holds what the agent should know afterwards. Deepgram vs. AssemblyAI and Exabase vs. AssemblyAI compare the options.
Frequently asked questions
What is the difference between speaker diarization and speech recognition?
Speech recognition decides which words were said; speaker diarization decides who said them. Most transcription products run both and merge the results, so each word or utterance carries a speaker label.
Does speaker diarization identify people by name?
No. Diarization groups speech by voice and assigns anonymous labels such as speaker 1 and speaker 2. Naming them needs a separate speaker identification step, usually with enrolled voice samples or other signals such as meeting participant data.
How is speaker diarization measured?
The standard measure is diarization error rate (DER), the share of speech time attributed wrongly through missed speech, false alarms or speaker confusion. Results depend heavily on the dataset, the scoring collar and whether overlapping speech is counted.
Why does diarization struggle with meetings?
Meetings combine overlapping speech, short interjections, distant microphones and an unknown number of speakers. Each of these raises error rates, and together they make meetings far harder than two-person phone calls.
Can I improve diarization accuracy?
Yes. Record each participant on a separate channel where possible, use close microphones, keep a good sample rate, and pass in the number of speakers when you know it. Testing on your own recordings gives a more reliable picture than published benchmarks.
Does Exabase do speaker diarization?
Exabase transcribes recorded audio and video through Exabase Extract and returns timestamped chunks that Deep Search can search. Its documentation describes speaker timestamps; for detailed speaker turns or named identification, check the extraction docs or pair Exabase with a dedicated diarization service.
Related pages: Audio transcription, Speech to text, Voice activity detection, Word-level timestamps, Word error rate, Video understanding, Meeting assistants, File extraction solution, Best speech to text APIs, Deepgram alternatives, AssemblyAI alternatives