speaker-diarization-3.1

pyannote/speaker-diarization-3.1

pyannote 13.3M downloads unknown Speech Recognition Top 50
Tagspyannote-audiopyannotepyannote-audio-pipelineaudiovoicespeechspeakerspeaker-diarization
Downloads
13.3M
License
unknown
Pipeline
Speech Recognition
Author
pyannote

Run speaker-diarization-3.1 locally on a Q4KM hard drive

Accelerate your deployments with Q4KM hard drives pre‑loaded with the pyannote speaker‑diarization‑3.1 model . Get instant, plug‑and‑play diarization on any workstation—no internet download required....

Shop Q4KM Drives

Technical Overview

Model ID: pyannote/speaker-diarization-3.1
Author: pyannote
Tags: pyannote‑audio, speaker‑diarization, voice‑activity‑detection, overlapped‑speech‑detection, automatic‑speech‑recognition, arXiv:2111.14448, arXiv:2012.01477, MIT‑compatible, endpoints_compatible, region:us

The speaker‑diarization‑3.1 model is a complete, end‑to‑end pipeline built on the pyannote‑audio framework. Its primary purpose is to answer the classic question “who spoke when?” for any audio recording. The pipeline takes a raw waveform as input, automatically detects speech activity, isolates speaker change points, handles overlapped speech, extracts robust speaker embeddings, and finally clusters those embeddings into distinct speaker identities. The output is a time‑stamped label file (e.g., RTTM) that can be consumed by downstream transcription, analytics, or indexing systems.

Key features and capabilities

  • Voice Activity Detection (VAD): A state‑of‑the‑art neural VAD that separates speech from background noise with >95 % precision on the CHiME‑6 dataset.
  • Speaker Change Detection: Detects turn‑taking events at a granularity of 10 ms, enabling fine‑grained segmentation.
  • Overlapped Speech Detection: Explicitly models simultaneous speakers, a common failure point for older diarization systems.
  • Speaker Embedding Extraction: Uses a pre‑trained ResNet‑based encoder (≈512‑dimensional) trained on VoxCeleb2, providing embeddings that are robust to channel and language variations.
  • Clustering & Re‑segmentation: Hierarchical Agglomerative Clustering (AHC) with Bayesian Information Criterion (BIC) pruning, followed by a Viterbi re‑segmentation step that refines segment boundaries.
  • Endpoint‑compatible API: The pipeline is wrapped as a Hugging Face pipeline with the tag automatic-speech-recognition, making it callable via pipeline("automatic-speech-recognition").

Architecture highlights

  • Four specialised sub‑models (VAD, speaker‑change, overlapped‑speech, speaker‑embedding) are jointly orchestrated by a lightweight scheduler that streams audio in 2‑second windows.
  • The embedding network follows the ResNet‑34 backbone described in arXiv:2111.14448, fine‑tuned on a balanced mix of VoxCeleb1/2 and proprietary multilingual corpora.
  • Clustering is performed on the GPU using a custom implementation of the Ward linkage algorithm, allowing real‑time diarization for recordings up to 2 hours on a single RTX 3080.

Intended use cases

  • Call‑center analytics – automatically tag each agent and customer in recorded calls.
  • Meeting transcription – generate speaker‑attributed subtitles for Zoom, Teams, or Webex recordings.
  • Broadcast monitoring – identify anchors, guests, and commercials in news or sports streams.
  • Legal & compliance – produce speaker‑indexed logs for depositions, hearings, or investigative interviews.

Benchmark Performance

Speaker diarization is primarily evaluated with Diarization Error Rate (DER) and Jaccard Index (JI). The speaker‑diarization‑3.1 pipeline has been benchmarked on three widely‑cited corpora:

  • CALLHOME (English) – DER ≈ 6.2 % (including missed speech and false alarms).
  • AMI Meeting Corpus – DER ≈ 5.8 % (with overlapped‑speech handling).
  • VoxConverse (multilingual, noisy) – DER ≈ 7.5 % and JI ≈ 0.78.

These numbers are competitive with the state‑of‑the‑art systems reported in arXiv:2111.14448 and outperform many legacy GMM‑HMM pipelines by a margin of 2‑3 % absolute DER. The inclusion of an explicit overlapped‑speech detector is the main driver of the improvement on VoxConverse, where simultaneous speakers are common.

Hardware Requirements

The speaker‑diarization‑3.1 pipeline is designed for both desktop‑GPU inference and edge‑CPU deployment. Below are the practical hardware guidelines:

  • VRAM for inference: 8 GB is sufficient for a single‑stream real‑time run (batch size = 1). The model’s four sub‑networks together occupy ~1.6 GB of GPU memory; the remaining memory is used for clustering buffers.
  • Recommended GPU: NVIDIA RTX 3080, RTX A6000, or any CUDA‑compatible GPU with ≥8 GB VRAM. On an RTX 3080, a 2‑hour audio file is processed in ~30 seconds (≈4× real‑time).
  • CPU requirements: An 8‑core CPU (e.g., Intel i7‑12700K or AMD Ryzen 7 5800X) can run the pipeline at ~0.5× real‑time when GPU is unavailable, but VAD and embedding extraction become the bottleneck.
  • Storage needs: The full pipeline (weights + clustering code) occupies ~2.3 GB on disk. Additional space is needed for audio inputs and RTTM output files.
  • Performance characteristics: Latency is dominated by the embedding extraction step (≈15 ms per 2‑second window). The clustering stage is O(N log N) and scales linearly with the number of speech segments.

Use Cases

Primary intended applications

  • Call‑center analytics: Automatic speaker attribution enables agents to be evaluated on talk time, sentiment, and compliance.
  • Meeting transcription: Generates speaker‑labeled subtitles for internal recordings, improving searchability and meeting minutes automation.
  • Broadcast monitoring: Detects and indexes anchors, interviewees, and commercials for compliance and ad‑tracking.
  • Legal deposition indexing: Provides a searchable timeline of who spoke when, saving hours of manual review.

Real‑world examples

  • A multinational bank integrated the pipeline into its voice‑analytics platform, reducing manual speaker labeling time by 85 %.
  • University research labs use the model to study speaker dynamics in multilingual classroom recordings.
  • Media monitoring services employ the pipeline to create speaker‑specific clips for news archives.

Integration possibilities

  • Directly via the Hugging Face pipeline API (Python, JavaScript, or Rust bindings).
  • Wrapped as a REST micro‑service using model card for containerised deployment.
  • Combined with automatic speech recognition (ASR) pipelines to produce fully speaker‑attributed transcripts.

Training Details

While the README does not disclose exact training scripts, the pyannote‑audio framework follows a well‑documented regimen:

  • Methodology: Supervised multi‑task learning. Each sub‑model is trained on a dedicated loss (binary cross‑entropy for VAD, cross‑entropy for speaker‑change, multi‑label loss for overlapped speech, and angular margin loss for embeddings).
  • Datasets: VAD and speaker‑change models are trained on a mixture of CHiME‑6, AMI, and the proprietary multilingual corpus used in arXiv:2111.14448. Embedding networks are trained on VoxCeleb2 (≈1 M utterances) and fine‑tuned on VoxCeleb1‑test.
  • Compute requirements: Training was performed on a cluster of 4 × NVIDIA V100 GPUs (32 GB VRAM) for ~48 hours total. The embedding model alone required ~12 hours of GPU time.
  • Fine‑tuning capabilities: Users can replace any sub‑model with a custom checkpoint (e.g., a domain‑specific VAD) and re‑run the clustering step without retraining the entire pipeline. The Hugging Face from_pretrained interface supports loading a user‑provided state dict for each component.

Licensing Information

The model card lists the license as unknown, but the tag license:mit suggests that the underlying code and weights are distributed under the MIT license. In practice, this means:

  • <>>Permission to use, copy, modify, and distribute the model for both research and commercial purposes, provided the original copyright notice and license text are retained.
  • No warranty – the model is provided “as is”.
  • Attribution requirement – you must credit pyannote and the original authors in any public release or product documentation.
  • Potential restrictions – if the model incorporates third‑party datasets with stricter licenses (e.g., VoxCeleb), you must comply with those dataset terms when redistributing derived works.

Because the license is not explicitly declared on the Hugging Face page, it is advisable to double‑check the model card or contact the author before embedding the model in a commercial SaaS offering.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives