
Pyannote Audio
Speaker diarization library for Python, pretrained PyTorch pipelines.
Replaces Assemblyai, Deepgram, Pyannoteai, Gladia, Speechmatics

Who it's for
Pyannote.audio provides the speaker attribution layer for meeting transcription: given a recorded call or meeting, the community-1 pipeline returns a timeline of who spoke and when, ready to join with a transcription output. Fine-tuning on meeting audio from your domain narrows the accuracy gap for domain-specific vocabulary and speaker patterns.
Your transcription API already includes accurate diarization output and you have no need to run on-premises. Services like AssemblyAI and Deepgram include diarization and eliminate the infrastructure overhead.
Teams operating under data residency requirements (GDPR, HIPAA, or client contracts) can run pyannote.audio entirely on their own hardware. No audio is sent to a third party. All processing stays on infrastructure you control, and the library's optional telemetry is off by default.
Your compliance requirements allow third-party audio processing and you prefer to minimize infrastructure management. A managed diarization API is simpler to operate in that case.
Pyannote.audio publishes benchmark results across 12 standard corpora (AISHELL-4, AliMeeting, AMI, AVA-AVD, CALLHOME, DIHARD 3, Ego4D, MSDWild, RAMC, REPERE, VoxConverse) and includes the training and evaluation pipeline for reproducing or improving on them. The Hugging Face model hub lists both community and premium pipeline variants for direct comparison.
You need evaluation protocols for a domain or corpus not covered by the published benchmarks, and no community fine-tuned models exist for your target domain.
Speaker attribution is a prerequisite for dubbing: each dubbed line must land on the right voice track. Pyannote.audio's speaker diarization and separation models produce per-speaker audio segments for a dubbing pipeline, with attribution that holds across languages and production volumes.
You process single-speaker content where diarization adds no value, or your dubbing platform already bundles speaker separation.
The problem
Speaker diarization in production breaks down in predictable ways. Audio from calls, meetings, and interviews contains overlapping speech where two people talk at once, variable recording quality from different microphones, and an unknown number of speakers that changes across files. Most off-the-shelf transcription APIs bundle a basic diarization step, but accuracy degrades on challenging audio: overlapping segments get assigned to the wrong speaker, brief speakers get merged with adjacent ones, and the diarization error propagates into every downstream feature that depends on knowing who said what. Building accurate speaker attribution from scratch requires assembling separate models for voice activity detection, speaker change detection, and speaker embedding, then aligning their outputs into a coherent timeline. Integrating diarization with a speech-to-text provider adds another step: timestamps from transcription and speaker segments rarely align without reconciliation logic. Teams building call analytics, medical scribe tools, or meeting products typically discover this gap after transcription quality looks acceptable but attribution contains systematic errors.
How it works
The community-1 pipeline produces a labeled speaker timeline from an audio file, identifying who spoke in each segment with millisecond-level start and stop times. It runs entirely on your hardware using PyTorch. Benchmarks across 12 standard datasets show lower diarization error rates than the prior 3.1 release, including a drop from 24.5% to 20.3% on AliMeeting and 28.5% to 26.7% on CALLHOME.
Beyond labeling anonymous speakers, pyannote.audio supports voiceprint-based speaker identification: a known speaker's voice is enrolled once, and the model matches that voice across files and sessions. This enables named attribution in meeting notes, call logs, and transcription tools without manual review after each recording.
A dedicated model detects and separates overlapping speech, where two or more speakers talk simultaneously. Isolated audio streams are produced for each speaker, which improves accuracy for downstream speech-to-text models and enables fine-grained turn detection in multi-party conversations.
Pyannote reconciles speaker diarization with any speech-to-text engine in a single call, removing the manual alignment step. Timestamps from transcription and speaker segments from diarization are merged automatically. This works with any STT provider: bring your own Whisper, AssemblyAI, Deepgram, or other service.
All pretrained pipelines and models are hosted on Hugging Face under the pyannote organization. Each model can be fine-tuned on your own audio data using the built-in training framework, which supports multi-GPU training via pytorch-lightning. Fine-tuning on domain-specific recordings (medical, legal, broadcast) typically yields lower error rates compared to the general-purpose pretrained model.
Features
- Speaker diarization with millisecond-level timeline
- Persistent voiceprints for speaker identification
- Overlapping speech detection and speaker separation
- STT orchestration with any transcription provider
- Fine-tunable pretrained models on Hugging Face
How to install
Install pyannote.audio with pip; FFmpeg is required on the system for audio decoding.
pip install pyannote.audioRecommended for this setup
Strengths
- MIT license with full self-hosting: Pyannote.audio is MIT licensed, meaning you can deploy it on your infrastructure, modify it, and use it commercially without restriction. Unlike Deepgram or AssemblyAI, which process audio on their servers, your data never leaves your environment. The license has no copyleft requirements and no commercial use restrictions.
- 1B+ downloads and active research backing: The library has over 1 billion open-source downloads and underpins speaker attribution in commercial products across call analytics, dubbing, and meeting intelligence. Ongoing research by the pyannoteAI team continues improving the pretrained models, with the community-1 pipeline showing across-the-board error rate reductions over the 3.1 baseline on every published benchmark.
- Modular architecture for custom pipeline composition: Each component in pyannote.audio (voice activity detection, speaker change detection, overlapped speech detection, speaker embedding) is a standalone model. You can swap individual components, fine-tune only the parts relevant to your domain, or use models independently outside a full diarization pipeline. Commercial diarization services expose a single opaque API with no equivalent customization path.
- No per-minute billing on self-hosted inference: Once deployed, inference has no variable cost tied to audio volume. For teams processing high volumes of calls or meetings, the per-minute billing from managed services accumulates fast; a single GPU server running pyannote.audio becomes cost-effective at a few hundred hours of audio per month.
Trade-offs
- Requires Hugging Face token and model acceptance: The community-1 pipeline requires accepting terms on Hugging Face and creating a personal access token before the models can be downloaded. This one-time setup step adds friction for automated deployment and means a changed Hugging Face account policy could affect model access. The premium pyannoteAI API avoids this requirement but introduces per-call costs.
- GPU required for production throughput: On CPU, diarization runs many times slower than real-time for typical meeting-length audio. The README benchmarks are measured on a NVIDIA H100; consumer-grade GPU or CPU-only deployments will be considerably slower. Teams processing large audio volumes need to plan GPU infrastructure accordingly.
- Tutorial documentation needs updating: The README notes that several tutorials were written for older versions of pyannote.audio and need updating for the current API. Teams new to the library should rely on the official docs at docs.pyannote.ai and the current README rather than the Jupyter notebook tutorials, which may reference a deprecated pipeline interface.
Tech stack
FAQ
Yes. The library is MIT licensed, so you can use it in commercial products, modify it, and deploy it on your own infrastructure without restriction or royalties. The pretrained models on Hugging Face require accepting their individual terms, which permit research and commercial use. The premium pyannoteAI API is a separate paid service with higher-accuracy models.
It works without a GPU, but inference runs many times slower than real-time for typical audio files on CPU. The README benchmarks show 31 seconds of processing per hour of audio on an H100 GPU; CPU performance depends on the hardware but is substantially slower. For low-volume or offline use, CPU is fine; for production throughput, a GPU is needed.
Pyannote.audio is the open-source Python library running on your own hardware; the pyannoteAI API (Precision-2 and Precision-3 tiers) is a managed service running on pyannoteAI's servers. They share the same interface. The API offers higher accuracy and faster inference (14 seconds per hour on Precision-2 vs 31 seconds for community-1) but introduces per-call pricing and audio leaving your environment. Use the open-source library when you need data residency, cost control at volume, or the ability to fine-tune.
Pyannote.audio uses torchcodec for audio decoding, which requires FFmpeg to be installed on the system. FFmpeg supports a wide range of formats including WAV, MP3, FLAC, and MP4 audio tracks. The README documents FFmpeg as a required system dependency.
Yes. All pretrained models and pipelines are hosted on Hugging Face and can be fine-tuned on your own labeled audio data using the built-in training framework. Multi-GPU training is supported via pytorch-lightning. Fine-tuning on domain-specific recordings (call center audio, medical transcripts, broadcast content) typically reduces diarization error rates compared to the general-purpose pretrained model.