Community-1 Speaker Diarization
a pipeline for speaker separation
2 min readupdated
This tool solves the speaker diarization task: it takes an audio file as input and determines who spoke, when, and for how long ("who spoke when"). Created by the Pyannote team using their audio technology, the model outperforms the previous version 3.1 on many academic benchmarks. It automatically converts audio to mono and adjusts the sample rate. The new release will be useful for developers of voice assistants, meeting logging systems, and automated audio transcription services.
Key features
- Improved speaker detection and counting
- Exclusive diarization mode for easier synchronization with text transcripts
- Support for offline operation without an internet connection
- Compatibility with the pyannote.audio Python library
What you can do
- Automatically split audio recordings of podcasts, interviews, and meetings into separate speaker turns
- Run processing locally on a GPU via PyTorch to speed up operations
- Control the number of speakers using the min_speakers and max_speakers parameters
- Set up progress monitoring using a special hook
Example
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained(
"pyannote/speaker-diarization-community-1",
token="{huggingface-token}")
output = pipeline("audio.wav")
for turn, speaker in output.speaker_diarization:
print(f"{speaker} speaks between t={turn.start:.3f}s and t={turn.end:.3f}s")
Read more
Details• Accuracy: outperforms version 3.1 on AMI, AliMeeting, and other datasets
• Requirements: runs on CPU by default, supports GPU transfer via PyTorch
• Features: automatic downmixing of stereo to mono
• Installation: via pip install pyannote.audio and a Hugging Face access token










Comments