Streaming speaker diarization labels who's speaking while a conversation is still happening, tagging each turn as speaker A, B or C as the words arrive. A meeting notetaker shows labeled lines on screen during the call. A live caption credits the right person. A coaching tool knows whether the rep or the customer just said "we're over budget."
With AssemblyAI-STT-3.7-Realtime, those labels are final when each turn ends. There's no second pass that rewrites earlier labels a few seconds later, so whatever your app renders or sends downstream stays correct. This guide covers how streaming diarization works, what changed with STT 3.7, how accurate it is, and how to build it with working Python code.
What is streaming speaker diarization?
Streaming speaker diarization is the real-time identification of who's speaking during live audio. Instead of waiting for a complete recording, it assigns a speaker label to each turn as the audio streams in, so applications like voice agents, live meeting transcription and contact center coaching can act on speaker identity during the conversation.
Traditional batch diarization waits for the whole file, then clusters every segment with full knowledge of the recording. Streaming diarization has to decide using only the audio it has heard so far.
| Aspect | Streaming diarization | Batch diarization |
|---|---|---|
| Processing model | Labels each turn as audio arrives | Waits for the complete file |
| When labels are available | At the end of each turn | After the whole file is processed |
| Context available | Only past audio | The full recording |
| Label changes | With STT 3.7, none: a turn's label is final when the turn ends | Labels are decided once, for the whole file |
| Typical use cases | Live notetakers, captions, agent assist, voice agents | Post-call analytics, podcasts, legal records |
You need streaming diarization when speaker attribution matters during the conversation itself. If you only need labeled transcripts after the call, batch diarization on the recording is the simpler choice.
How streaming speaker diarization works
Streaming diarization sits on top of real-time speech-to-text. AssemblyAI's Streaming API delivers transcripts in turns, and each turn gets a speaker label. The process has three steps.
Turns set the boundaries
A turn is one continuous unit of speech from a single speaker, like "Hello, how can I help you today?" before the other person responds. Turn detection decides where one turn ends and the next begins, so the quality of the speaker labels depends on clean turn boundaries. If a turn swallows two people's speech, it can only carry one turn-level label.
That's why enabling speaker labels changes the turn-detection defaults. With speaker_labels: true, the server applies diarization-tuned defaults (min_turn_silence of 640 ms and max_turn_silence of 768 ms) so turns break cleanly at speaker changes. The turn detection docs cover the full set of parameters.
Voice embeddings and a growing speaker profile
For each turn, the model computes an embedding, a numeric fingerprint of the voice, and compares it against the speaker profiles it has built so far in the session. A close match gets that speaker's label; a new voice gets the next letter. Labels follow arrival order: the first person to speak is A, the second is B.
The profiles get richer as the session goes on, so accuracy improves over the course of a conversation. The first one or two turns can be misassigned because the model hasn't heard enough from anyone yet. The server also refines its speaker model periodically during the session, which improves the labels on new turns without any configuration.
Labels are final at the end of each turn
With STT 3.7, the label on a final turn doesn't change afterward. Earlier versions of streaming diarization could send revision messages that relabeled past turns as more context arrived. That revision pass is gone, along with the SpeakerRevision message and the speaker_labels_revision_interval_ms parameter. Your client renders a final turn once and moves on.
Word-level speaker labels
Each final word in a turn also carries its own speaker field. When one person interjects into another's turn ("Your Colombian Spanish won't work." followed by "Uh, no."), the speaker changes at the word boundary inside the turn, before the next turn starts.
Three details matter when you consume word-level labels:
- The
speakerfield only appears on words whereword_is_finalis true. - It can be absent on a word. Treat that word as unattributed and fall back to the turn's
speaker_label. - A word labeled
PENDINGmeans the model couldn't confidently attribute it to anyone, which is common for short backchannels like "uh huh" or "yeah".
Final turns and words also carry an experimental speaker_confidence score between 0 and 1. It isn't calibrated, so don't apply absolute thresholds. Use it to rank regions of a transcript, for example to surface the least-confident stretches for review.
How accurate is streaming diarization with STT 3.7?
AssemblyAI-STT-3.7-Realtime has the lowest live diarization error rate of every realtime provider AssemblyAI measured on telephone calls and on multi-party meetings recorded on a single distant microphone, ahead of ElevenLabs Scribe v3 Live and Meta Muse Voice Transcribe. The STT 3.7 launch post has the full charts.
- Diarization error rate (DER) is the share of speaking time attributed to the wrong speaker, including missed speech and false alarms.
- Concatenated minimum-permutation word error rate (cpWER) scores words and speaker attribution together, so a correct word credited to the wrong person counts as an error.
Each vendor's realtime API ran at default settings, August to November 2026. CallHome is 40 unscripted telephone calls; NOTSOFAR is 129 real meetings recorded on a single distant microphone with up to seven speakers:
| Provider (live labels) | Telephone calls (CallHome) DER | Multi-party meetings (NOTSOFAR) DER |
|---|---|---|
| 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% |
| Azure Realtime | 20.21% | 19.19% |
| AWS Transcribe Streaming | 27.89% | 23.79% |
| Soniox Realtime v6 | 18.35% | 32.89% |
| Deepgram Nova-3 | 30.46% | 26.37% |
Google Gemini 3.5 Transcribe Live, Cartesia Ink Whisper and Gladia Solaria return no speaker labels on streaming, so they have no score.
That's the practical change for builders. Before, the most accurate labels arrived late, so an app either showed labels that might flip or waited for revisions. Now speaker labels are final the moment a turn ends and are nearly as accurate as labels from pre-recorded audio, with no revision pass to wait for.
The benchmarks page has the full streaming diarization tables. The May 2026 streaming diarization upgrade covers the earlier model generation and the move to word-level labels.
Stream a meeting or a call through STT-3.7-Realtime with speaker labels on, and see how the labels hold up on your speakers and microphones.
Which model to use for streaming diarization
Speaker labels work on three streaming models. Set the model with speech_model and turn on labels with speaker_labels: true.
| Model | speech_model | Price | Use it for |
|---|---|---|---|
| AssemblyAI-STT-3.7-Realtime | assemblyai-stt-3-7-realtime | $0.30/hr | The docs' recommended diarization model: notetakers, meetings, live captions |
| AssemblyAI-STT-3.7-Realtime-Agent | assemblyai-stt-3-7-realtime-agent | $0.45/hr | Voice agents that also need to know who's talking |
| Universal-3.6 Pro Realtime | universal-3-6-pro | $0.45/hr | Previous model, still fully supported for existing integrations |
If people read the transcript, start with STT-3.7-Realtime. If an AI agent answers the speaker, use STT-3.7-Realtime-Agent, which adds voice-agent turn detection and Voice Focus. Both cover 32 languages. For a broader comparison of streaming models and vendors, see the best real-time speech-to-text APIs.
How to implement streaming speaker diarization
If you already stream audio to AssemblyAI, diarization is one connection parameter. There's no separate endpoint: speaker labels arrive on the same Turn messages as the transcript, over the same WebSocket used for streaming speech-to-text.
Configure the connection
from assemblyai.streaming.v3 import RealTimeParameters
params = RealTimeParameters(
sample_rate=16000,
speech_model="assemblyai-stt-3-7-realtime",
speaker_labels=True,
max_speakers=3, # optional hard cap, 1-10
)max_speakers is a hard limit, not a hint. If more people speak than the value you set, the extra speakers are merged into the closest existing label. Give the model a little headroom above the count you expect, but don't set it far higher, because that can make the model split one person into two labels. If you don't know the count, leave it unset.
Read the labels
Each final Turn carries a turn-level speaker_label:
{
"type": "Turn",
"transcript": "Good morning, thanks for joining the call.",
"speaker_label": "A",
"speaker_confidence": 0.972431,
"end_of_turn": true,
"turn_is_formatted": true
}If a turn contains less than about one second of audio, its speaker_label is "PENDING". The model needs roughly a second of speech to compute a reliable embedding, and guessing on less would split one speaker into several labels. Decide how your app handles these turns: attribute them to the previous speaker, show them unlabeled, or flag them.
A complete Python example
This script streams a 16-bit mono WAV file at real-time pace to STT-3.7-Realtime, prints each final turn with its speaker, and prints the word-level runs when a turn contains more than one speaker. It uses the AssemblyAI Python SDK (pip install assemblyai==1.10.1).
import argparse
import os
import time
import wave
from assemblyai.streaming.v3 import (
BeginEvent,
RealTimeError,
RealTimeEvents,
RealTimeParameters,
RealTimeTranscriber,
RealTimeTranscriberOptions,
TerminationEvent,
TurnEvent,
)
CHUNK_MS = 50 # the docs recommend 50 to 100 ms chunks
def speaker_runs(event: TurnEvent):
"""Group a final turn's words into consecutive runs by word-level speaker."""
runs = []
for word in event.words or []:
# `speaker` only appears on final words and can be absent.
# Fall back to the turn-level label when it is missing.
speaker = word.speaker or event.speaker_label or "PENDING"
if runs and runs[-1][0] == speaker:
runs[-1][1].append(word.text)
else:
runs.append((speaker, [word.text]))
return [(speaker, " ".join(words)) for speaker, words in runs]
def on_begin(client: RealTimeTranscriber, event: BeginEvent):
print(f"Session started: {event.id}")
def on_turn(client: RealTimeTranscriber, event: TurnEvent):
# Partials re-transcribe the turn as it grows. Act on finals.
if not event.end_of_turn or not event.transcript:
return
label = event.speaker_label or "PENDING"
print(f"[{label}] {event.transcript}")
runs = speaker_runs(event)
known = {speaker for speaker, _ in runs if speaker != "PENDING"}
if len(known) > 1:
for speaker, text in runs:
print(f" word-level [{speaker}] {text}")
def on_terminated(client: RealTimeTranscriber, event: TerminationEvent):
print(f"Session terminated: {event.audio_duration_seconds}s of audio processed")
def on_error(client: RealTimeTranscriber, error: RealTimeError):
print(f"Error: {error}")
def main():
parser = argparse.ArgumentParser()
parser.add_argument("wav_path", help="16-bit mono PCM WAV file")
parser.add_argument("--max-speakers", type=int, default=None)
args = parser.parse_args()
with wave.open(args.wav_path, "rb") as wav:
if wav.getnchannels() != 1 or wav.getsampwidth() != 2:
raise SystemExit("Expected a 16-bit mono WAV file.")
sample_rate = wav.getframerate()
frames_per_chunk = int(sample_rate * CHUNK_MS / 1000)
client = RealTimeTranscriber(
RealTimeTranscriberOptions(terminate_timeout=30.0),
api_key=os.environ["ASSEMBLYAI_API_KEY"],
)
client.on(RealTimeEvents.Begin, on_begin)
client.on(RealTimeEvents.Turn, on_turn)
client.on(RealTimeEvents.Termination, on_terminated)
client.on(RealTimeEvents.Error, on_error)
client.connect(
RealTimeParameters(
sample_rate=sample_rate,
speech_model="assemblyai-stt-3-7-realtime",
speaker_labels=True,
max_speakers=args.max_speakers,
)
)
try:
while True:
chunk = wav.readframes(frames_per_chunk)
if not chunk:
break
client.stream(chunk)
time.sleep(CHUNK_MS / 1000) # real-time pace, like a live source
finally:
# Terminate finalizes the open turn before the session closes.
client.disconnect(terminate=True)
if __name__ == "__main__":
main()Run it with python diarize_stream.py conversation.wav --max-speakers 3. The output looks like this:
Session started: 7f3a9c2e-...
[A] Good morning, thanks for joining the call.
[B] Good morning. Happy to be here.
[PENDING] Yeah.
[A] So let's start with a quick overview of the project timeline.
Session terminated: 41.2s of audio processedThe full project, with a README and requirements file, is in the companion repo on GitHub. Streaming is billed on session duration, so the script always terminates the session when the file ends.
Multichannel streaming as an alternative
If your audio already captures each speaker on a separate channel, which is common in contact centers where the agent and customer are on different lines, you can skip diarization. Open a separate streaming session per channel and label each session's turns by channel. You get exact speaker separation with no embedding step. The streaming diarization and multichannel docs include a complete dual-channel example.
Sign up free, set speaker_labels to true on STT-3.7-Realtime, and get labeled turns over the same WebSocket as your transcript.
When to use streaming speaker diarization
Ask one question: does your application need to act on speaker identity before the conversation ends?
Streaming fits:
- Meeting notetakers that show labeled live notes and pull per-person action items during the call. See how AI notetakers use real-time transcription.
- Live captioning for broadcasts, webinars and panels, where the caption should name the speaker.
- Agent assist and live coaching, where a prompt for the rep depends on what the customer said, not the rep.
- Voice agents in multi-party calls that need to tell the caller from a second participant.
Batch fits better:
- Post-call analysis where labels only matter afterward. For call analytics, batch diarization on the recording sees the full file.
- Podcast production and legal transcripts.
- Meeting summaries generated after the call.
You can also combine them: use streaming labels for live features during the call, then run batch diarization on the recording for the archived record.
Speaker count matters. Two-speaker calls are the easiest case. As more people join, each speaker contributes less audio, so profiles take longer to settle.
Known limitations
Real-time diarization is a harder problem than diarization on a finished recording. Plan for these cases:
- Short utterances. Turns under about one second come back as
PENDING. - Overlapping speech. When two people talk at once, the model can't split the audio and assigns the turn to one speaker. Frequent cross-talk lowers accuracy.
- Session start. The first one or two turns may be misassigned before profiles exist. This usually corrects quickly.
- Noise and mic bleed. Background noise and one speaker's voice leaking into another's microphone lower embedding quality.
For the best results, use a microphone setup that limits cross-talk, and let each speaker produce a few complete sentences before you rely on per-turn labels downstream.
How to evaluate streaming diarization quality
Metrics: DER, cpWER and label stability
DER is the standard diarization metric. It's sensitive to how a system segments speech, which users don't notice, so pair it with cpWER, which measures whether each word is both correct and credited to the right speaker.
For streaming, also track label stability: how often a label you already showed has to change. With STT 3.7, final-turn labels don't change, so stability comes down to how you handle partials and PENDING turns in your UI.
Test with your own audio
Public diarization datasets like AMI, CALLHOME and DIHARD are useful for comparing models, but they won't predict how your system performs in production. Record 20 to 50 real conversations (with consent), annotate who spoke when, and score them on every model or configuration change. Weight the hard cases:
- Short replies like "yes", "no" and "go ahead", the most common turns and the hardest to label.
- Audio quality spread: cell phones, Bluetooth headsets, speakerphones and conference-room mics.
- Overlap and interruptions, scored at the word level, where the
speakerfield on each word shows whether an interjection was caught. - Speaker count, matching the range your product sees.
Build voice applications with streaming diarization
Speaker labels are one layer of a live voice application. Notetakers pair them with summaries, captioning pairs them with formatting, and agent assist pairs them with retrieval. Because labels arrive on the same Turn messages as the transcript, everything downstream can key off one stream of events.
The biggest change in STT 3.7 is that you no longer have to choose between labels that arrive fast and labels that are right. The label at the end of the turn is the final one, and it's nearly as accurate as a label from pre-recorded audio. That makes it practical to show speaker names live, act on them, and store them without a cleanup pass.
Get a free API key and stream your first diarized session on STT-3.7-Realtime in a few minutes.
Frequently Asked Questions (FAQs)
What is streaming speaker diarization?
Streaming speaker diarization labels who is speaking in live audio as the conversation happens, tagging each turn with a speaker such as A or B. It lets notetakers, captioning, agent assist and voice agents act on speaker identity during the call instead of after it. Batch diarization does the same job on a finished recording.
How accurate is real-time speaker diarization?
AssemblyAI-STT-3.7-Realtime has the lowest live diarization error rate of every realtime provider AssemblyAI measured on telephone calls (10.46% on CallHome) and on single-microphone multi-party meetings (6.30% on NOTSOFAR), ahead of ElevenLabs Scribe v3 Live and Meta Muse Voice Transcribe. Results on your audio depend on speaker count, overlap and microphone setup.
Do streaming speaker labels change after a turn ends?
No. With AssemblyAI-STT-3.7, a turn's speaker label is final when the turn ends, and the old SpeakerRevision messages are gone. The model keeps refining its speaker profiles during the session, which improves labels on later turns without rewriting earlier ones.
Can streaming diarization separate overlapping speech?
No. When two people talk at the same time, streaming diarization assigns that turn to one speaker. Word-level speaker fields catch interjections within a turn, but simultaneous speech isn't split. If each party is on a separate channel, stream each channel as its own session.
What does a PENDING speaker label mean?
PENDING means the model didn't have enough audio to attribute the speech confidently. A turn under about one second gets a PENDING turn label, and short backchannel words like "yeah" can be PENDING at the word level. Handle it in your app, for example by attributing it to the previous speaker or leaving it unlabeled.
Which AssemblyAI model should I use for streaming diarization?
Use AssemblyAI-STT-3.7-Realtime (assemblyai-stt-3-7-realtime, $0.30/hr), which the docs recommend for diarization. If a voice agent answers the speaker, STT-3.7-Realtime-Agent also supports speaker_labels. Universal-3.6 Pro Realtime remains supported for existing integrations.