AI & ML interests
Speaker diarization
Recent Activity
🤗 Diarizers Community — Open-Source ASR, Speaker Diarization, and DiarizationLM Post-Processing
diarizers-community develops open-source models and software for speaker-attributed automatic speech recognition (ASR + Speaker Diarization + DiarizationLM Post-Processing):
- Unified Python Package & CLI (
diarizersv1.1.0):- GitHub:
https://github.com/diarizers-community/diarizers - PyPI:
https://pypi.org/project/diarizers/(pip install -U "diarizers[audio,llm]")
- GitHub:
- Pretrained Multilingual DiarizationLM Models (Gemma 4,
bfloat16Safetensors +Q4_K_MGGUF, Apache-2.0):- Best Overall Quality (
12B, Default inprofile="best-quality"&"max"):diarizers-community/DiarizationLM-Gemma-4-12B-v1 - Fast / Low-Memory CPU (
4B,2×faster &~7.6 GiBRAM inprofile="fast"):diarizers-community/DiarizationLM-Gemma-4-E4B-v2 - Legacy v1 (
4B, English-only):diarizers-community/DiarizationLM-Gemma-4-E4B-v1
- Best Overall Quality (
- Interactive Demos (Hugging Face Spaces):
- End-to-End Audio Pipeline Demo (
diarizersv1.1.0):spaces/diarizers-community/diarizers - Text-Only Multilingual DiarizationLM GGUF Demo (
E4B-v2&12B-v1):spaces/diarizers-community/DiarizationLM-GGUF
- End-to-End Audio Pipeline Demo (
Configurable Quality vs. Cost Profiles in diarizers (v1.1.0)
diarizers v1.1.0 introduces an overlapping powerset-masked acoustic frontend (powerset_ward), pure-PyTorch FlaxSpeaker SimAM-ERes2Conformer speaker encoders, and four readable profiles (profile=... in Python, --profile ... in CLI) spanning <2 GiB real-time CPU deployments to multi-speaker GPU pipelines:
Profile (--profile / profile=) |
Aliases | Stage 2 Acoustic Diarizer (powerset_ward) |
Stage 4 DiarizationLM | 211-Test Micro / Macro WDER (%) | 11-Lang i18n WDER (%) |
CPU Cost (Q4_K_M GGUF) |
Recommended Use Case |
|---|---|---|---|---|---|---|---|
"best-quality" (default) |
best, quality, default |
ECAPA-TDNN (20.8M, 30 ms/seg CPU) |
DiarizationLM-Gemma-4-12B-v1 |
3.88 / 5.25 (Raw: 3.90 / 5.18) | 20.55 | ~14.3 GiB RAM, 7.5–8.0 tok/s |
Best overall accuracy (>= 24 GiB RAM or GPU) |
"max" |
flaxspeaker, gpu |
FlaxSpeaker-XL (64.4M, 394 ms/seg CPU) |
DiarizationLM-Gemma-4-12B-v1 |
3.90 / 5.20 (Raw: 5.18; 3.49% CALLHOME, 6.33% ICSI) | 20.55 | ~14.6 GiB RAM + heavier encoder |
GPU deployments & unconstrained 1–10 speaker meetings |
"fast" |
balanced, lite, cpu |
ECAPA-TDNN (20.8M, 30 ms/seg CPU) |
DiarizationLM-Gemma-4-E4B-v2 |
4.13 / 5.49 | 20.83 (Raw: 20.87) | ~7.6 GiB RAM, 15.4 tok/s (2× faster) |
16 GiB RAM laptops, CPU servers & Spaces |
"acoustic-only" |
no-llm, realtime |
ECAPA-TDNN (20.8M, 30 ms/seg CPU) |
None (disabled) |
5.65 / 6.96 | 21.43 | < 2.0 GiB RAM, no LLM latency |
Ultra-low-resource / real-time CPU transcription |
Architecture of diarizers (v1.1.0)
- Stage 1 — Timestamped ASR (
diarizers.asr):openai/whisper-large-v3-turbo(WhisperWordASR, MIT License) orQwen/Qwen3-ASRGGUF viaaudio.cpp(Apache-2.0 License). - Stage 2 — Powerset-Masked Speaker Segmentation + ECAPA / FlaxSpeaker Embeddings + Auto-
KClustering (diarizers.diarization,diarizers.flaxspeaker_encoder&diarizers.spectral):- Standalone PyTorch
pyannote/segmentation-3.0(PyanNetSegmentation, MIT License) extracting clean overlapping10s(step=2.5s) single-speaker tracks. - Standalone PyTorch
speechbrain/spkrec-ecapa-voxceleb(SpeechBrainECAPATDNN, Apache-2.0) andwq2012/FlaxSpeakerSimAM-ERes2Conformer(FlaxSpeakerERes2Conformer, Apache-2.0). powerset_ward: Ward linkage auto-K+ per-chunk Hungarian cannot-link cosine EM + balanced speaker-centroid centering + two-pass uniform soft powerset stitching (alongside legacySpectralClusterer).
- Standalone PyTorch
- Stage 3 — Soft Posterior Word Alignment & Chunked Prompting (
diarizers.alignment): Sub-millisecond soft posterior word integration (assign_speakers_from_probs), script-aware multilingual tokenization, andChunkedPromptBuilder. - Stage 4 — Multilingual
DiarizationLMPost-Processing &LG-TPST(diarizers.llm&diarizers.alignment): Automatic CPUllama.cppQ4_K_MGGUF or GPUbfloat16transformersinference withDiarizationLM-Gemma-4-12B-v1orDiarizationLM-Gemma-4-E4B-v2, Hungarian inter-chunk reconciliation, Myers' (1999) bit-parallel exact word-level Levenshtein (tpst_align), and Locality-Gated Transcript-Preserving Speaker Transfer (LG-TPST).
Verified Benchmark Evaluation Results
1. End-to-End Open-Source Pipeline (diarizers v1.1.0 powerset_ward, 211 Test Recordings)
All speaker counts are estimated automatically without oracle K across 172 Fisher calls, 20 CALLHOME-English calls, 3 ICSI meetings, and 16 AMI Mix-Headset meetings (bfloat16, full all-speaker reference cpWER denominators):
| Profile / System | Fisher (172) WDER / cpWER (%) | CALLHOME (20) WDER / cpWER (%) | ICSI (3) WDER / cpWER (%) | AMI (16) WDER / cpWER (%) | Micro / Macro WDER (%) | SpkCntMAE (Macro) |
|---|---|---|---|---|---|---|
Legacy v1.0.1 (sliding_spectral + ECAPA) + E4B-v1 (Raw) |
2.64 / 21.96 | 4.84 / 25.87 | 23.11 / 59.44 | 20.09 / 50.91 | 7.10 / 12.67 | 1.018 |
acoustic-only (v1.1.0 ECAPA powerset_ward) |
4.49 / 24.58 | 6.07 / 26.81 | 7.82 / 40.14 | 9.48 / 35.68 | 5.65 / 6.96 | 0.239 |
fast (v1.1.0 ECAPA + E4B-v2, LG-TPST) |
2.86 / 22.16 | 4.05 / 24.85 | 6.59 / 39.25 | 8.45 / 34.84 | 4.13 / 5.49 | 0.239 |
best-quality (v1.1.0 ECAPA + 12B-v1, LG-TPST) |
2.61 / 21.85 | 3.75 / 24.30 | 6.50 / 39.19 | 8.11 / 34.44 | 3.88 / 5.25 | 0.239 |
best-quality (v1.1.0 ECAPA + 12B-v1, Raw-TPST) |
2.68 / 21.91 | 3.58 / 24.23 | 6.41 / 39.13 | 8.04 / 34.37 | 3.90 / 5.18 | 0.214 |
max (v1.1.0 FlaxSpeaker-XL + 12B-v1, LG-TPST) |
2.65 / 21.87 | 3.57 / 24.33 | 6.39 / 39.08 | 8.19 / 34.43 | 3.90 / 5.20 | 0.249 |
max (v1.1.0 FlaxSpeaker-XL + 12B-v1, Raw-TPST) |
2.69 / 21.91 | 3.49 / 24.30 | 6.33 / 39.05 | 8.22 / 34.46 | 3.93 / 5.18 | 0.236 |
2. Multilingual Open-Source Evaluation (i18n_open_eval: 20 Datasets, 2,147 Utterances, 11 Languages)
| System | Micro WDER / Macro WDER (%) | Micro cpWER / Macro cpWER (%) | Paired ΔWDER vs. Previous |
|---|---|---|---|
| Open-Frontend Acoustic Baseline | 21.43 / 20.58 | 54.26 / 51.65 | — |
+ DiarizationLM-Gemma-4-E4B-v1 (Raw / LG) |
21.57 / 20.72 (LG: 21.42 / 20.58) | 54.44 / 51.83 | +0.14 pp (regresses non-English) |
+ DiarizationLM-Gemma-4-E4B-v2 (fast) |
20.87 / 20.01 (LG: 20.83 / 19.98) | 53.85 / 51.23 | -0.70 pp (p < 0.0001 vs E4B-v1) |
+ DiarizationLM-Gemma-4-12B-v1 (best-quality) |
20.55 / 19.70 (LG: 20.62 / 19.76) | 53.55 / 50.94 | -0.32 pp (p < 0.0001 vs E4B-v2; wins 19/20 sets) |
3. USM + Turn-to-Diarize Reference Frontend (211 Test Recordings)
| Benchmark | Test Split | WER (%) | Baseline WDER (%) | E4B-v1 (4B) WDER (%) |
E4B-v2 (4B) WDER (%) |
12B-v1 (12B) WDER (%) |
|---|---|---|---|---|---|---|
| Fisher | 172 sessions | 15.37 | 5.32 | 2.99 | 3.03 | 2.89 (17.44% cpWER) |
| CALLHOME | 20 calls | 15.22 | 7.74 | 4.92 | 5.20 | 5.01 (20.70% cpWER) |
| ICSI | 3 meetings | 29.42 | 14.70 | 14.10 | 13.96 | 13.93 (43.21% cpWER) |
| AMI | 16 meetings | 24.33 | 15.68 | 14.89 | 14.82 | 14.44 (39.09% cpWER) |
Quickstart
pip install -U "diarizers[audio,llm]"
import diarizers
# Default ("best-quality"): Whisper-large-v3-turbo + ECAPA powerset_ward + Gemma-4-12B-v1
# Automatically uses 4-bit Q4_K_M GGUF on CPU when llama-cpp-python is installed!
pipe = diarizers.DiarizersPipeline.from_pretrained()
# Or choose profile="fast" (E4B-v2, ~7.6 GiB RAM, 2x faster), "max" (FlaxSpeaker-XL), or "acoustic-only":
pipe_fast = diarizers.DiarizersPipeline.from_pretrained(profile="fast")
transcript = pipe("conversation.wav")
print(transcript.to_diarized_text())
print(transcript.to_rttm(recording_id="conversation"))
print(transcript.to_srt())
For full documentation, CLI usage (diarizers run --audio call.wav --profile best-quality), SFT training recipes, and evaluation tools, visit https://github.com/diarizers-community/diarizers.
-
diarizers-community/speaker-segmentation-fine-tuned-callhome-eng
1.47M • Updated • 1.15k • 5 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-zho
1.47M • Updated • 98 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-deu
1.47M • Updated • 23 • 6 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-spa
1.47M • Updated • 15
-
diarizers-community/speaker-segmentation-fine-tuned-callhome-eng
1.47M • Updated • 1.15k • 5 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-zho
1.47M • Updated • 98 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-deu
1.47M • Updated • 23 • 6 -
diarizers-community/speaker-segmentation-fine-tuned-callhome-spa
1.47M • Updated • 15