# pyannote community-1: run speaker diarization locally, and how it compares with 3.1

> Community-1 is pyannote's free, open diarization model. It has a lower error rate than 3.1 on 10 of 12 benchmarks and runs offline once downloaded. Here is the setup, step by step.

Published 2026-11-29 · https://smarterthanus.ai/pyannote-community-1-speaker-diarization-local/

## TL;DR

- Community-1 has a lower diarization error rate than pyannote 3.1 on **10 of 12** benchmarks. It ties on VoxConverse and is worse on REPERE.
- Averaged over pyannote's 12 published benchmarks, the error rate falls from **24.6%** on 3.1 to **22.6%**.
- It is free under CC-BY-4.0. On an H100 it takes about **31 seconds** per hour of audio, and once cloned with git-lfs it runs fully offline.
- If you'd rather not run it yourself, pyannoteAI hosts the same model for **€0.035** per audio hour (checked 29 November 2026).

[speaker-diarization-community-1](https://huggingface.co/pyannote/speaker-diarization-community-1) is pyannote's open model for working out who spoke when. You can run it on your own computer in about ten lines of Python. In pyannote's own benchmark it has a lower error rate than the older 3.1 pipeline on **10 of 12** datasets. Once you have downloaded it, no audio leaves your machine.

The model is not new: it shipped with pyannote.audio 4.0.0 on 29 September 2025. What did change this month is the library around it. [pyannote.audio 4.1.0](https://github.com/pyannote/pyannote-audio/releases/tag/4.1.0) came out on 17 November 2026 and needs **Python 3.11** or newer, so a setup that worked last year may fail to install today. The steps below are for the current version.

## How community-1 compares with 3.1

The table below shows diarization error rate (DER). That is the share of audio where the model gets speech, silence or the speaker wrong. Lower is better. pyannote scores it strictly: no forgiveness collar around speaker changes, and overlapping speech counts. Benchmarks were last updated in September 2025. Precision-2 is pyannote's paid cloud model.

| Benchmark | 3.1 | community-1 | precision-2 (paid) |
|---|---|---|---|
| AMI (headset mics) | 18.8 | 17.0 | 12.9 |
| AMI (single distant mic) | 22.7 | 19.9 | 15.6 |
| AliMeeting | 24.5 | 20.3 | 15.2 |
| CALLHOME (phone calls) | 28.5 | 26.7 | 16.6 |
| DIHARD 3 | 21.4 | 20.2 | 14.7 |
| AVA-AVD (film) | 49.7 | 44.6 | 37.1 |
| VoxConverse | 11.2 | 11.2 | 8.5 |
| REPERE (TV) | 7.9 | 8.9 | 7.4 |
| **Average of all 12** | **24.6** | **22.6** | **17.2** |

The averages are ours, calculated from the model card's 12 rows; the table shows 8 of them. Community-1 gains most on messy video and egocentric recordings (**5.1 points** on AVA-AVD, 4.4 on Ego4D) and on meetings with many speakers (4.2 on AliMeeting). On clean broadcast audio it gains nothing, and it is a point worse on REPERE. The [release post](https://pyannote.ai/blog/community-1) puts the gain down to speaker assignment and counting, so you get fewer cases where one person is split into two labels or two people are merged into one. Voice activity detection is unchanged from 3.1.

We did not run our own accuracy or speed test for this piece. The numbers above are pyannote's own.

## What you need

- **Python 3.11 or newer** for pyannote.audio 4.1 ([release notes](https://github.com/pyannote/pyannote-audio/releases/tag/4.1.0)).
- **ffmpeg**, which the torchcodec audio decoder needs. Since 4.0, ffmpeg (or audio already loaded into memory) is the only way the library reads files; sox and soundfile support were removed.
- A free **Hugging Face account and access token**. The model is gated, so you have to accept its conditions on the model page before the download works.
- A GPU is optional. On CPU it works but is slower, and pyannote doesn't publish CPU speeds. On an NVIDIA H100, the [README](https://github.com/pyannote/pyannote-audio) gives **31 seconds per hour of audio** for hour-long meeting files and 37 seconds for 5-minute clips. Version 4.1 also moves one feature-extraction step onto Apple's MPS backend, so Apple Silicon Macs no longer fall back to the CPU for it.

The weights are licensed **CC-BY-4.0**, so you can use them commercially as long as you credit pyannote.

## Step by step: diarize your first file

1. Install ffmpeg (`sudo apt install ffmpeg`, `brew install ffmpeg`, or the Windows build from ffmpeg.org).
2. Install the library: `pip install pyannote.audio` (the README recommends `uv add pyannote.audio`).
3. Open the [model page](https://huggingface.co/pyannote/speaker-diarization-community-1), accept the conditions, then create a read token at hf.co/settings/tokens.
4. Run this script on a WAV or MP3 file:

```python
import torch
from pyannote.audio import Pipeline
from pyannote.audio.pipelines.utils.hook import ProgressHook

pipeline = Pipeline.from_pretrained(
    "pyannote/speaker-diarization-community-1",
    token="hf_your_token_here",
)
if torch.cuda.is_available():
    pipeline.to(torch.device("cuda"))

with ProgressHook() as hook:
    output = pipeline("interview.wav", hook=hook)

for turn, speaker in output.speaker_diarization:
    print(f"{speaker}  {turn.start:7.1f}s - {turn.end:7.1f}s")
```

You get a list of turns labelled `SPEAKER_00`, `SPEAKER_01` and so on. The model works on 16 kHz mono audio and converts anything else on load: stereo is averaged down to one channel and other sample rates are resampled.

**If you know how many people are talking, say so.** Counting speakers is where diarization most often goes wrong, and the pipeline accepts a fixed count or a range:

```python
output = pipeline("interview.wav", num_speakers=2)
output = pipeline("panel.wav", min_speakers=3, max_speakers=6)
```

**Upgrading from 3.1?** Two changes break old scripts. `use_auth_token=` is now `token=`, and the `name@revision` syntax has been replaced by a separate `revision=` argument ([4.0.0 notes](https://github.com/pyannote/pyannote-audio/releases)). Downloads now go to the standard Hugging Face cache, and `PYANNOTE_CACHE` is ignored.

## Running it fully offline

For sensitive recordings, keep a local copy of the model and load it from disk. The model card's method is to clone the repository with git-lfs. When git asks for a password, give it a Hugging Face access token; the model card says to use one with write permissions, not the read token from step 3:

```bash
git lfs install
git clone https://huggingface.co/pyannote/speaker-diarization-community-1
```

```python
pipeline = Pipeline.from_pretrained("/path/to/speaker-diarization-community-1")
```

After that, the pipeline needs no internet connection.

## Matching speakers to a transcript

Diarization only tells you who spoke when. For a transcript with names, you combine it with a speech-to-text model that gives word timestamps, such as Whisper. Community-1 has a second output for this, `exclusive_speaker_diarization`, which allows only one speaker at any moment. pyannote ported it from its paid precision-2 model so that each transcribed word has exactly one speaker to match. Here is a simple way to label a word, using the speaker whose turn overlaps it most:

```python
turns = list(output.exclusive_speaker_diarization)

def speaker_for(word_start, word_end):
    best, best_overlap = None, 0.0
    for turn, speaker in turns:
        overlap = min(turn.end, word_end) - max(turn.start, word_start)
        if overlap > best_overlap:
            best, best_overlap = speaker, overlap
    return best
```

Call `speaker_for(w.start, w.end)` for each word your transcriber returns, then group consecutive words that have the same label.

## What the hosted and paid options cost

You don't need to pay for anything above. If you'd rather not run a GPU, pyannoteAI hosts the same model and also sells stronger ones. Prices are from the [pricing page](https://www.pyannote.ai/pricing), checked 29 November 2026:

| Option | Price per audio hour | Notes |
|---|---|---|
| community-1, local | €0 | Your hardware, CC-BY-4.0 |
| community-1, hosted | €0.035 | Same model on pyannote's servers |
| Precision-3, Developer plan | €0.112 | €19/month, includes €19 of usage |
| Precision-3, Starter plan | €0.096 | €99/month, includes €99 of usage |

Since this model card was written, pyannote has launched Precision-3, the batch model that is set to take over from precision-2; precision-2 stays available during the migration. pyannote [says](https://www.pyannote.ai/precision-3) it averages 14.35 DER across 15 datasets, **34% lower** than community-1, and costs the same as precision-2. That is a vendor claim on a different set of benchmarks from the table above. The paid plans start with a 30-day trial and need no card.

For transcribing your own podcast or interviews, the free local model is good enough to start with. Give it the speaker count, check the output against a minute of audio you know well, and only pay for Precision-3 if speakers keep being merged or split.

## Sources

- [pyannote/speaker-diarization-community-1 model card (Hugging Face)](https://huggingface.co/pyannote/speaker-diarization-community-1)
- [pyannote-audio README (GitHub)](https://github.com/pyannote/pyannote-audio)
- [pyannote-audio releases (GitHub)](https://github.com/pyannote/pyannote-audio/releases)
- [pyannote-audio 4.1.0 release notes](https://github.com/pyannote/pyannote-audio/releases/tag/4.1.0)
- [Community-1 announcement (pyannoteAI blog)](https://pyannote.ai/blog/community-1)
- [pyannoteAI pricing](https://www.pyannote.ai/pricing)
- [Precision-3 (pyannoteAI)](https://www.pyannote.ai/precision-3)
