Updated November 2026
Speaker diarization answers one question that's harder than it looks: who spoke when? Get it right and every downstream feature works: per-speaker sentiment, agent-vs-customer analytics, speaker-attributed summaries. Get it wrong and all of that breaks, no matter how good your transcription is. That's why diarization is one of the first things teams building conversation intelligence, voice agents and meeting products evaluate.
This guide compares the eight diarization solutions worth knowing in 2026, shows how the APIs score on diarization error rate for recorded and live audio, and separates the ones that run in real time from the batch-only options.
What is speaker diarization?
Speaker diarization segments and labels an audio stream by speaker, so a transcript reads "Speaker A… Speaker B…" instead of one undifferentiated wall of text. In automatic speech recognition (ASR), it does two jobs: it works out how many distinct speakers are in a recording, and it attributes each segment of speech to the right one.
The big shift of the last couple of years is that diarization now runs in real time on a single live audio stream, not only on finished recordings. That's what makes live captioning, contact center coaching and voice agents possible without putting each speaker on a separate channel.
Diarization is scored two ways. DER (diarization error rate) measures how much speech time lands on the wrong speaker, is missed, or is falsely detected. cpWER measures whether the right speaker label lands on the right words. Both come up below.
Async vs. streaming: the axis most teams overlook
Before the list, decide which mode you're building for, because it narrows your options fast.
Batch (async) diarization waits for the complete recording, then labels it. It can look at the whole file at once, so it's the most accurate option and the right choice for post-call analytics, meeting summaries and media transcription.
Streaming diarization assigns labels live, as people talk. It can't look ahead. It commits to a label with only the audio it has heard so far, so the first few turns are the least stable. But if speaker identity has to drive behavior during the conversation, like a live meeting view or a coaching prompt for a human agent, streaming is the only option.
Here's how the eight solutions compare. Pre-recorded DER is the average over six English conversation datasets from the AssemblyAI-STT-3.7 research post, each vendor's production API at default settings (AssemblyAI-STT-3.7 and ElevenLabs Scribe v3 measured November 2026, others October 2026). Live DER is from the AssemblyAI-STT-3.7 launch post: CallHome (40 unscripted telephone calls) and NOTSOFAR (129 real meetings on a single distant microphone, up to seven speakers), each vendor's realtime API at default settings, runs August to November 2026. Lower is better. A dash means the system wasn't measured.
| Provider | Type | Streaming diarization | Pre-recorded DER | Live DER, phone calls (CallHome) | Live DER, meetings (NOTSOFAR) |
|---|---|---|---|---|---|
| AssemblyAI | API | Yes | 10.7% (AssemblyAI-STT-3.7) | 10.46% (AssemblyAI-STT-3.7-Realtime) | 6.30% (AssemblyAI-STT-3.7-Realtime) |
| ElevenLabs Scribe | API | Yes (Scribe v3 Live) | 12.0% (Scribe v3) | 10.78% | 9.63% |
| Speechmatics | API (cloud or on-premises) | Yes | 16.2% (Enhanced) | 14.58% (Enhanced Realtime) | 25.74% (Enhanced Realtime) |
| Gladia | API | No speaker labels returned on streaming in our run | 16.7% (Solaria-1) | — | — |
| Deepgram | API | Yes (v1 diarizer only) | 17.4% (Nova-3) | 30.46% (Nova-3) | 26.37% (Nova-3) |
| pyannote | Open source (plus hosted API) | Batch-focused | — | — | — |
| NVIDIA NeMo | Open source | Streaming Sortformer (self-hosted) | — | — | — |
| Kaldi / SpeechBrain | Open source | Batch | — | — | — |
AssemblyAI has the lowest DER in all three columns. On recorded audio it's ahead of ElevenLabs Scribe v3, Speechmatics, Gladia and Deepgram, and on live audio it's ahead of ElevenLabs Scribe v3 Live, Speechmatics and Deepgram on both test sets.
Turn on speaker diarization for pre-recorded or streaming audio and get labeled utterances back with your transcript. New accounts get $50 in free credits for the speech APIs.
Best speaker diarization APIs and libraries
1. AssemblyAI
AssemblyAI is a Voice AI platform built around speech-to-text, with Speech Understanding models for speaker identification, sentiment, entity detection and summarization layered on top.
Pre-recorded audio. AssemblyAI-STT-3.7 ships with a new speaker diarization model. On English conversations it has the lowest diarization error rate of the pre-recorded APIs measured, 10.7%, ahead of ElevenLabs Scribe v3 at 12.0%. Against the previous model and diarizer, the published results show:
- cpWER on full recordings down from 29.3% to 23.5%, and DER from 14.7% to 9.4%
- The average speaker-count error down from 0.57 to 0.21 speakers per file
- On 60-second clips, cpWER down from 34.0% to 18.6%, so short calls and voice notes get usable labels
- cpWER lower in all nine other languages tested, from 23.5% to 22.1% on average
- A diarization step that runs 3–4× faster
The new diarizer weighs the model's confidence when it assigns each word to a speaker, which keeps sentences intact and still attributes quick interjections like "yeah" and "mm-hmm" to the right person. It's live for every language on all async speech models, so if you already set speaker_labels, you get it with no code change.
Turning it on takes one parameter. Here's the pre-recorded version with the Python SDK, using a speaker range:
from assemblyai import SpeakerOptions
from assemblyai.prerecorded.v2 import Transcriber, TranscriptionConfig
config = TranscriptionConfig(
speech_models=["assemblyai-stt-3-7"],
speaker_labels=True,
# Hard bounds on the number of labels. Use speakers_expected instead
# only if you know the exact count. Never set both.
speaker_options=SpeakerOptions(min_speakers_expected=2, max_speakers_expected=4),
)
transcriber = Transcriber(api_key="<YOUR_API_KEY>")
transcript = transcriber.transcribe("https://assembly.ai/wildfires.mp3", config)
for utterance in transcript.utterances:
print(f"Speaker {utterance.speaker}: {utterance.text}")max_speakers_expected is a hard cap, not a hint. If more people speak than the cap, the extra voices merge into existing labels, so give the model a little headroom; setting it too high can over-split one speaker into two. The speaker diarization docs recommend at least 30 seconds of speech per speaker for a stable label, and speaker_options.include_speaker_confidence adds a per-word and per-utterance speaker confidence score to the REST response. To swap "Speaker A" for real names or roles like "Agent" and "Customer", add Speaker Identification, which infers them from the conversation.
Live audio. AssemblyAI-STT-3.7-Realtime is the model the docs recommend for streaming diarization. Speaker labels are final the moment a turn ends, with no revision pass to wait for. It has the lowest live diarization error rate of every realtime provider measured on telephone calls (10.46%) and on single-distant-mic meetings (6.30%), ahead of ElevenLabs Scribe v3 Live and Meta Muse Voice Transcribe. The streaming setup is covered below.
Strengths:
- Lowest pre-recorded DER of the APIs measured, and lowest live DER on both phone-call and meeting test sets
- Pre-recorded and streaming diarization on one API key
- AssemblyAI-STT-3.7 covers 32 languages with native code switching, with Universal-2 available for 99 languages
Pricing: diarization adds $0.02/hr to pre-recorded transcription (AssemblyAI-STT-3.7 is $0.21/hr) and $0.12/hr to streaming (AssemblyAI-STT-3.7-Realtime is $0.30/hr; AssemblyAI-STT-3.7-Realtime-Agent is $0.45/hr). Speaker Identification starts at $0.02/hr. See the pricing page.
2. ElevenLabs Scribe
ElevenLabs' documentation lists speaker diarization on Scribe v3 for recorded audio, up to 32 speakers, and on Scribe v3 Live with diarize=true. On live audio, draft labels appear in partials and each committed transcript is followed by a separate diarized version.
In the published November 2026 results, Scribe v3 averages 12.0% pre-recorded DER against 10.7% for AssemblyAI-STT-3.7. Scribe v3 Live posts 10.78% live DER on CallHome and 9.63% on NOTSOFAR, against 10.46% and 6.30% for AssemblyAI-STT-3.7-Realtime. Batch jobs are capped at 15 hours of audio.
3. Speechmatics
Speechmatics offers speaker diarization, channel diarization, and a combined channel-and-speaker mode that's available on Realtime only. Its Agent STT product supports speaker diarization but not channel diarization. Speechmatics also ships on-premises containers (CPU and GPU) and Kubernetes deployments, which is the main reason teams shortlist it.
In the published results, Speechmatics Enhanced averages 16.2% pre-recorded DER. Its Enhanced Realtime model posts 14.58% live DER on CallHome and 25.74% on NOTSOFAR.
4. Gladia
Gladia's Solaria-1 API offers speaker diarization on pre-recorded audio through diarization and a diarization_config object with number_of_speakers, min_speakers and max_speakers. Gladia's docs describe those values as hints, not constraints, so the detected count can differ from what you set. Its diarization page covers pre-recorded audio only, and in the live-diarization run behind the launch post, Gladia Solaria returned no speaker labels on streaming.
On pre-recorded audio, Solaria-1 averages 16.7% DER in the published results.
5. Deepgram
Deepgram enables diarization with diarize_model, which turns it on and picks the diarizer version in one parameter. Batch requests can use the v2 diarizer; streaming supports only v1, and diarize_model=v2 on a stream returns a validation error. Whisper models on Deepgram don't support diarization, and setting both the older diarize=true and diarize_model gets a request rejected.
In the published results, Nova-3 averages 17.4% pre-recorded DER, and 30.46% live DER on CallHome and 26.37% on NOTSOFAR. For the full head-to-head on recorded audio, see AssemblyAI vs Deepgram for batch transcription.
6. pyannote
pyannote is the most widely used open-source diarization toolkit. The current release is pyannote.audio 4.1.0 (PyPI, November 17, 2026), MIT-licensed, and its open pretrained pipeline is Community-1. You install ffmpeg, accept the model's conditions on Hugging Face, create an access token, and run it locally:
# pip install pyannote.audio
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained(
"pyannote/speaker-diarization-community-1", token="HUGGINGFACE_ACCESS_TOKEN"
)
output = pipeline("audio.wav") # runs locally
for turn, speaker in output.speaker_diarization:
print(f"start={turn.start:.1f}s stop={turn.end:.1f}s speaker_{speaker}")pyannote returns speaker turns with timestamps, not a transcript. To get "who said what", you pair it with an ASR model and align the two yourself. For speed at volume, move the pipeline to a GPU. The project also sells a hosted premium pipeline, precision-2, that runs on pyannoteAI's servers with an API key. Self-hosting fits research teams and builds with ML expertise to tune and maintain it.
7. NVIDIA NeMo
NeMo (nemo-toolkit 3.0.0) offers two approaches. Sortformer is an end-to-end transformer diarizer that labels speakers by order of arrival, with a streaming Sortformer variant. The cascaded pipeline chains voice activity detection, a speaker embedding extractor, clustering and a multi-scale diarization decoder; NVIDIA's docs say cascaded systems have fewer limits on speaker count and session length than end-to-end ones. Both run on your own GPUs, and NeMo integrates them with NVIDIA's ASR models for custom multi-speaker pipelines.
8. Kaldi and SpeechBrain
Both are open-source research toolkits. Kaldi is the long-standing, highly configurable speech recognition framework, with x-vector and PLDA recipes for diarization: maximum control, steep learning curve. SpeechBrain (1.1.2) is the PyTorch-based option, with a modular design and recipes for speaker embeddings and diarization. Both suit academic research and prototyping more than production, where self-hosting overhead dominates.
What about Whisper?
Whisper doesn't diarize. It returns text without speaker labels, so the common workaround is Whisper for transcription plus pyannote for speaker turns, aligned by timestamp. That works for prototypes, but alignment errors at turn boundaries and overlapping speech are yours to handle. Our guide to Whisper speaker diarization walks through the setup and its limits.
Upload a meeting or call and check how speaker labels hold up on fast turn-taking, short replies and overlapping speech. No code required.
Real-time (streaming) speaker diarization
For a long time, reliable diarization meant batch processing. The only solid path to real-time speaker separation was multichannel audio with each speaker on a dedicated channel. That's no longer the case.
With AssemblyAI streaming speech-to-text, you add speaker_labels: true to the connection, plus an optional max_speakers cap (1–10). Diarization is supported on assemblyai-stt-3-7-realtime, assemblyai-stt-3-7-realtime-agent and universal-3-6-pro, and the streaming diarization docs recommend AssemblyAI-STT-3.7-Realtime. Every Turn event carries a speaker_label, and each final word carries its own speaker, so you can catch a speaker change inside a turn.
Here's a Python SDK example that streams a 16 kHz mono WAV file at real-time pace and prints each finished turn with its label:
import time
import wave
from assemblyai.streaming.v3 import (
StreamingClient,
StreamingClientOptions,
StreamingEvents,
StreamingParameters,
TurnEvent,
)
def on_turn(client: StreamingClient, event: TurnEvent):
if event.end_of_turn:
# Turns shorter than about a second come back as "PENDING"
print(f"{event.speaker_label}: {event.transcript}")
def audio_chunks(path: str, chunk_ms: int = 50):
# Expects 16 kHz, 16-bit mono PCM WAV
with wave.open(path, "rb") as wf:
frames = int(wf.getframerate() * chunk_ms / 1000)
while data := wf.readframes(frames):
yield data
time.sleep(chunk_ms / 1000) # pace the file like live audio
client = StreamingClient(StreamingClientOptions(api_key="<YOUR_API_KEY>"))
client.on(StreamingEvents.Turn, on_turn)
client.connect(
StreamingParameters(
sample_rate=16000,
speech_model="assemblyai-stt-3-7-realtime",
speaker_labels=True,
max_speakers=4, # optional hard cap, 1-10
)
)
try:
client.stream(audio_chunks("meeting.wav"))
finally:
client.disconnect(terminate=True)The published live results cover every realtime provider that returned speaker labels, on CallHome telephone calls and NOTSOFAR meetings:
| Realtime system | Live DER, phone calls (CallHome) | Live DER, meetings (NOTSOFAR) |
|---|---|---|
| AssemblyAI-STT-3.7-Realtime | 10.46% | 6.30% |
| ElevenLabs Scribe v3 Live | 10.78% | 9.63% |
| Meta Muse Voice Transcribe | 16.44% | 7.34% |
| Speechmatics Enhanced Realtime | 14.58% | 25.74% |
| Soniox Realtime v6 | 18.35% | 32.89% |
| Azure Realtime | 20.21% | 19.19% |
| AWS Transcribe Streaming | 27.89% | 23.79% |
| Deepgram Nova-3 | 30.46% | 26.37% |
Each vendor's realtime API ran at default settings, August to November 2026. Google Gemini 3.5 Transcribe Live, Cartesia Ink Whisper and Gladia Solaria returned no speaker labels on streaming, so they have no score.
A few practical notes for streaming:
- Short utterances are hard. Turns under about a second, like "yeah" or "uh huh", come back with the speaker label
"PENDING", because the model needs about a second of audio for a reliable speaker embedding. Handle that label in your client instead of assuming a letter. - The first turns are the least stable. The first one or two turns of a session can be misassigned before the model has built speaker profiles. Labels get more consistent as the conversation goes on, and the server refines its speaker model during the session without extra configuration.
- Overlapping speech goes to one speaker. When two people talk at once, the turn is assigned to a single speaker, so frequent cross-talk lowers accuracy.
- Speaker confidence is relative. Turns and final words carry a
speaker_confidencescore. The docs mark it experimental and uncalibrated, so use it to find the least-confident stretches for review, not as a fixed threshold. - Multichannel is still great when your infrastructure already separates speakers onto channels, which is common in telephony. The docs recommend one streaming session per channel, which gives you perfect separation with no diarization step.
How to evaluate speaker diarization quality
Most published diarization benchmarks report one number: diarization error rate (DER). It adds up missed speech, false alarms and speaker confusion as a share of total speech time. The standard setup uses a 0.25-second collar around reference boundaries and doesn't score overlapping speech. DER is useful for isolating the diarizer, but it never looks at the words. A system can post a strong DER and still put the wrong words under the right label.
cpWER covers that gap. It computes word error rate after matching predicted speakers to reference speakers, so a correctly transcribed word on the wrong speaker counts as an error. For speaker-attributed transcripts, it's the closer proxy for what users see. Our post on DER vs. cpWER walks through the difference, and our guide to measuring speech-to-text accuracy covers both alongside WER and entity error.
The two metrics move by different amounts, so track both. In the AssemblyAI-STT-3.7 results, swapping the transcription model on top of the new diarizer cut DER on full recordings by 1.1 points but cpWER by 3.3 points, because cpWER also counts the better words inside each speaker's turns.
For streaming, two more things matter:
- Latency: the delay between speech and a labeled turn. For a live view or a coaching prompt, a label that arrives after the moment has passed is useless.
- Label stability: how often labels change. Constant flipping makes a UI look broken even when the final transcript is right. That's why AssemblyAI-STT-3.7-Realtime finalizes the label when the turn ends.
Whatever you track, test on audio that matches your use case: turn-taking speed, audio quality, short utterances and overlapping speech.
How to choose a speaker diarization solution
For production applications:
- Lowest diarization error on recorded audio: AssemblyAI-STT-3.7, at 10.7% DER, ahead of ElevenLabs Scribe v3, Speechmatics, Gladia and Deepgram in the published results.
- Live meetings, captions and contact center coaching: AssemblyAI-STT-3.7-Realtime, with the lowest live DER measured on phone calls and single-distant-mic meetings, and labels that are final when each turn ends.
- Contact centers: agent-vs-customer attribution for QA and coaching, as covered on our call analytics page. If agent and customer are already on separate channels, transcribe each channel separately.
- On-premises deployment: Speechmatics ships on-premises containers.
For research and development, the open-source options (pyannote 4.x with Community-1, NeMo's Sortformer, Kaldi, SpeechBrain) give you model control at the cost of engineering time, GPU infrastructure and ongoing maintenance. Many teams start on an API to validate the use case, then evaluate self-hosting once they understand their scale.
Add pre-recorded or streaming diarization on one API key with AssemblyAI-STT-3.7 and AssemblyAI-STT-3.7-Realtime. New accounts get $50 in free credits for the speech APIs.
Frequently Asked Questions (FAQs)
What is the best speaker diarization API in 2026?
On AssemblyAI's published November 2026 results, AssemblyAI-STT-3.7 has the lowest diarization error rate of the pre-recorded APIs measured, 10.7%, ahead of ElevenLabs Scribe v3 at 12.0%, Speechmatics Enhanced at 16.2%, Gladia Solaria-1 at 16.7% and Deepgram Nova-3 at 17.4%. Choose on the metric that matches your product, and test on your own audio.
What is the best real-time speaker diarization API for voice agents?
You want streaming diarization on the same connection as transcription, with labels that don't flip after the fact. In the published live results, AssemblyAI-STT-3.7-Realtime has the lowest live diarization error rate on telephone calls (10.46%) and single-distant-mic meetings (6.30%), ahead of ElevenLabs Scribe v3 Live and Meta Muse Voice Transcribe. Diarization is also supported on AssemblyAI-STT-3.7-Realtime-Agent.
Is speaker diarization supported for both recorded audio and live streams?
On AssemblyAI, yes. Set speaker_labels to true on a pre-recorded request to get labeled utterances, or add speaker_labels: true to a streaming connection to get a speaker_label on every turn. ElevenLabs, Speechmatics and Deepgram also offer both modes; Gladia's diarization docs cover pre-recorded audio only.
What's the difference between DER and cpWER?
DER measures the share of speech time that is missed, falsely detected or attributed to the wrong speaker, and ignores the words. cpWER computes word error rate after matching predicted speakers to reference speakers, so a correct word on the wrong speaker counts as an error. DER isolates the diarizer, while cpWER reflects what users see in a speaker-labeled transcript.
How many speakers can speaker diarization detect?
It depends on the provider and mode. On AssemblyAI's pre-recorded API you can set an exact count with speakers_expected or a hard range with speaker_options, and streaming diarization accepts a max_speakers cap from 1 to 10. ElevenLabs documents up to 32 speakers on Scribe v3. Accuracy is highest with fewer speakers and at least 30 seconds of speech from each.
How much does speaker diarization cost?
On AssemblyAI, diarization adds $0.02/hr to pre-recorded transcription and $0.12/hr to streaming, on top of the model rate: $0.21/hr for AssemblyAI-STT-3.7, $0.30/hr for AssemblyAI-STT-3.7-Realtime and $0.45/hr for AssemblyAI-STT-3.7-Realtime-Agent. Speaker Identification, which replaces generic labels with names or roles, starts at $0.02/hr. Open-source libraries have no per-hour fee but carry GPU and engineering costs.