-
Notifications
You must be signed in to change notification settings - Fork 0
HuggingFace Diarization
Adam Klement edited this page Jul 23, 2026
·
1 revision
Diarization (--diarize) identifies who said what. It uses pyannote.audio and downloads models from HuggingFace on first use.
Regular transcription works without this. You only need HuggingFace if you use --diarize.
Without setup you get: 403 Client Error, gated repo, or not in the authorized list.
Sign up free: huggingface.co/join
Log in, open each link, click Agree and access repository:
| Model | Link |
|---|---|
| Diarization pipeline | https://huggingface.co/pyannote/speaker-diarization-3.1 |
| Segmentation | https://huggingface.co/pyannote/segmentation-3.0 |
| Speaker embedding | https://huggingface.co/pyannote/wespeaker-voxceleb-resnet34-LM |
| Community PLDA (pyannote 4.x) | https://huggingface.co/pyannote/speaker-diarization-community-1 |
All four are required with pyannote.audio 4.x. Missing one (especially community-1) = access error.
Verify before transcribing:
lwt install verify-diarization- https://huggingface.co/settings/tokens
- Create new token
- Name:
lwt-diarization - Type: Read
- Copy token (
hf_...)
lwt config set diarization.hf_token hf_your_token_here
lwt config showOr enter during lwt setup.
lwt install diarization
lwt transcribe meeting.wav --diarize
lwt transcribe meeting.wav --diarize --speaker-names "Alice,Bob"Models cache locally after first download — then diarization runs offline.
lwt transcribe meeting.wav --diarize --hf-token hf_xxx