hbredin commited on
Commit
0353ae8
Β·
verified Β·
1 Parent(s): 11fed2c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +94 -28
README.md CHANGED
@@ -7,31 +7,97 @@ sdk: static
7
  pinned: false
8
  ---
9
 
10
- [**pyannote.audio**](https://github.com/pyannote/pyannote-audio) is an open-source toolkit for speaker diarization.
11
-
12
- Pretrained pipelines reach state-of-the-art performance on most academic benchmarks.
13
- Training is made possible thanks to [GENCI](https://www.genci.fr/) on the [**Jean Zay**](http://www.idris.fr/eng/jean-zay/) supercomputer.
14
-
15
- [**pyannoteAI**](https://www.pyannote.ai) provides even better and faster enterprise options, which can be tried for free on our [**playground**](https://dashboard.pyannote.ai).
16
-
17
-
18
- | Benchmark | [v2.1](https://hf.co/pyannote/speaker-diarization-2.1) | [v3.1](https://hf.co/pyannote/speaker-diarization-3.1) | [pyannoteAI](https://www.pyannote.ai) |
19
- | ---------------------- | ------ | ------ | --------- |
20
- | [AISHELL-4](https://arxiv.org/abs/2104.03603) | 14.1 | 12.2 | 11.4 |
21
- | [AliMeeting](https://www.openslr.org/119/) (channel 1) | 27.4 | 24.4 | 15.2 |
22
- | [AMI](https://groups.inf.ed.ac.uk/ami/corpus/) (IHM) | 18.9 | 18.8 | 12.9 |
23
- | [AMI](https://groups.inf.ed.ac.uk/ami/corpus/) (SDM) | 27.1 | 22.4 | 15.6 |
24
- | [AVA-AVD](https://arxiv.org/abs/2111.14448) | 66.3 | 50.0 | 37.1 |
25
- | [CALLHOME](https://catalog.ldc.upenn.edu/LDC2001S97) ([part 2](https://github.com/BUTSpeechFIT/CALLHOME_sublists/issues/1)) | 31.6 | 28.4 | 16.6 |
26
- | [DIHARD 3](https://catalog.ldc.upenn.edu/LDC2022S14) ([full](https://arxiv.org/abs/2012.01477)) | 26.9 | 21.7 | 14.7 |
27
- | [Ego4D](https://arxiv.org/abs/2110.07058) (dev.) | 61.5 | 51.2 | 39.0 |
28
- | [MSDWild](https://github.com/X-LANCE/MSDWILD) | 32.8 | 25.3 | 17.3 |
29
- | [RAMC](https://www.openslr.org/123/) | 22.5 | 22.2 | 10.5 |
30
- | [REPERE](https://www.islrn.org/resources/360-758-359-485-0/) (phase2) | 8.2 | 7.8 | 7.4 |
31
- | [VoxConverse](https://github.com/joonson/voxconverse) (v0.3) | 11.2 | 11.3 | 8.5 |
32
- [Diarization error rate](http://pyannote.github.io/pyannote-metrics/reference.html#diarization) (in %)
33
-
34
- Using high-end NVIDIA hardware,
35
- * [v2.1](https://hf.co/pyannote/speaker-diarization-2.1) takes around 1m30s to process 1h of audio
36
- * [v3.1](https://hf.co/pyannote/speaker-diarization-3.1) takes around 1m20s to process 1h of audio
37
- * On-premise [pyannoteAI](https://www.pyannote.ai) takes less than 20s to process 1h of audio
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  pinned: false
8
  ---
9
 
10
+ ![Identify who speaks when with pyannote](https://github.com/pyannote/.github/raw/main/profile/banner.jpg)
11
+
12
+ ## πŸ’šΒ Simply detect, segment, label, and separate speakers in any language
13
+
14
+ <div align="center">
15
+ <a href="https://github.com/pyannote/pyannote-audio"><img alt="Github" src="https://img.shields.io/badge/Open%20source%20toolkit-059669?style=flat&logo=github&logoColor=FFFFFF"></a>
16
+ <a href="https://hf.co/pyannote"><img alt="Hugging Face" src="https://img.shields.io/badge/Open%20models-059669?style=flat&logo=huggingface&logoColor=FFFFFF"></a>
17
+ <a href="https://discord.gg/4cjCJcZv"><img alt="Discord" src="https://img.shields.io/badge/Discord-059669?style=flat&logo=discord&logoColor=white"></a>
18
+ <a href="https://www.linkedin.com/company/pyannoteai/"><img alt="LinkedIn" src="https://img.shields.io/badge/LinkedIn-059669?style=flat&logo=linkedin&logoColor=white"></a>
19
+ <a href="https://x.com/pyannoteAI"><img alt="X" src="https://img.shields.io/badge/X-059669?style=flat&logo=x&logoColor=white"></a><br/>
20
+ <a href="https://dashboard.pyannote.ai/"><img alt="Playground" src="https://img.shields.io/badge/-Playground-059669?style=flat"></a>
21
+ <a href="https://docs.pyannote.ai/"><img alt="Documentation" src="https://img.shields.io/badge/Documentation-059669?style=flat"></a>
22
+
23
+ </div>
24
+
25
+ ### 🎀 What is speaker diarization?
26
+
27
+ ![Diarization]((https://github.com/pyannote/.github/raw/main/profile/diarization.jpg)
28
+
29
+ **Speaker diarization** is the process of automatically partitioning the audio recording of a conversation into segments and labeling them by speaker, answering the question **"who spoke when?"**. As the **foundational layer of conversational AI**, speaker diarization provides high-level insights for human-human and human-machine conversations, and unlocks a wide range of downstream applications: meeting transcription, call center analytics, voice agents, video dubbing.
30
+
31
+ ### ▢️ Getting started
32
+
33
+ Install [`pyannote.audio`](https://github.com/pyannote/pyannote-audio) latest release available from ![Latest release](https://img.shields.io/pypi/v/pyannote-audio?color=059669) with either `uv` (recommended) or `pip`:
34
+
35
+ ```bash
36
+ $ uv add pyannote.audio
37
+ $ pip install pyannote.audio
38
+ ```
39
+
40
+ Enjoy state-of-the-art speaker diarization:
41
+
42
+ ```python
43
+ # download pretrained pipeline from Huggingface
44
+ from pyannote.audio import Pipeline
45
+ pipeline = Pipeline.from_pretrained('pyannote/speaker-diarization-community-1', token="HUGGINGFACE_TOKEN")
46
+
47
+ # perform speaker diarization locally
48
+ output = pipeline('/path/to/audio.wav')
49
+
50
+ # enjoy state-of-the-art speaker diarization
51
+ for turn, speaker in output.speaker_diarization:
52
+ print(f"{speaker} speaks between t={turn.start}s and t={turn.end}s")
53
+ ```
54
+
55
+ Read [`community-1` model card](https://hf.co/pyannote/speaker-diarization-community-1) to make the most of it.
56
+
57
+
58
+ ### πŸ† State-of-the-art models
59
+
60
+ [`pyannoteAI`](https://www.pyannote.ai/) research team trains cutting-edge speaker diarization models, thanks to [**Jean Zay**](http://www.idris.fr/eng/jean-zay/) πŸ‡«πŸ‡· supercomputer managed by [**GENCI**](https://www.genci.fr/) πŸ’š. They come in two flavors:
61
+
62
+ * [`pyannote.audio`](https://github.com/pyannote/pyannote-audio) open models available on [Huggingface](https://hf.co/pyannote) and used by 140k+ developers over the world ;
63
+ * premium models available on [`pyannoteAI` cloud](https://dashboard.pyannote.ai) (and on-premise for enterprise customers) that provide state-of-the-art speaker diarization as well as additional enterprise features.
64
+
65
+ | Benchmark (last updated in 2025-09) | <a href="https://hf.co/pyannote/speaker-diarization-3.1">`legacy` (3.1)</a>| <a href="https://hf.co/pyannote/speaker-diarization-community-1">`community-1`</a> | <a href="https://docs.pyannote.ai">`precision-2`</a> |
66
+ | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------| ------------------------------------------------ |
67
+ | [AISHELL-4](https://arxiv.org/abs/2104.03603) | 12.2 | 11.7 | 11.4 πŸ† |
68
+ | [AliMeeting](https://www.openslr.org/119/) (channel 1) | 24.5 | 20.3 | 15.2 πŸ†|
69
+ | [AMI](https://groups.inf.ed.ac.uk/ami/corpus/) (IHM) | 18.8 | 17.0 | 12.9 πŸ†|
70
+ | [AMI](https://groups.inf.ed.ac.uk/ami/corpus/) (SDM) | 22.7 | 19.9 | 15.6 πŸ† |
71
+ | [AVA-AVD](https://arxiv.org/abs/2111.14448) | 49.7 | 44.6 | 37.1 πŸ† |
72
+ | [CALLHOME](https://catalog.ldc.upenn.edu/LDC2001S97) ([part 2](https://github.com/BUTSpeechFIT/CALLHOME_sublists/issues/1)) | 28.5 | 26.7 | 16.6 πŸ† |
73
+ | [DIHARD 3](https://catalog.ldc.upenn.edu/LDC2022S14) ([full](https://arxiv.org/abs/2012.01477)) | 21.4 | 20.2 | 14.7 πŸ† |
74
+ | [Ego4D](https://arxiv.org/abs/2110.07058) (dev.) | 51.2 | 46.8 | 39.0 πŸ† |
75
+ | [MSDWild](https://github.com/X-LANCE/MSDWILD) | 25.4 | 22.8 | 17.3 πŸ† |
76
+ | [RAMC](https://www.openslr.org/123/) | 22.2 | 20.8 | 10.5 πŸ† |
77
+ | [REPERE](https://www.islrn.org/resources/360-758-359-485-0/) (phase2) | 7.9 | 8.9 | 7.4 πŸ† |
78
+ | [VoxConverse](https://github.com/joonson/voxconverse) (v0.3) | 11.2 | 11.2 | 8.5 πŸ† |
79
+
80
+ __[Diarization error rate](http://pyannote.github.io/pyannote-metrics/reference.html#diarization) (in %, the lower, the better)__
81
+
82
+ ### ⏩️ Going further, better, and faster
83
+
84
+ [`precision-2`](https://www.pyannote.ai/blog/precision-2) premium model further improves accuracy, processing speed, as well as brings additional features.
85
+
86
+ | Features | <a href="https://hf.co/pyannote/speaker-diarization-community-1">`community-1`</a> | <a href="https://docs.pyannote.ai">`precision-2`</a> |
87
+ | -------------- | ----------- | ----------- |
88
+ | Set exact/min/max number of speakers | βœ… | βœ… |
89
+ | Exclusive speaker diarization (for transcription) | βœ… | βœ… |
90
+ | Segmentation confidence scores | ❌ | βœ… |
91
+ | Speaker confidence scores | ❌ | βœ… |
92
+ | Voiceprinting | ❌ | βœ… |
93
+ | Speaker identification | ❌ | βœ… |
94
+ | Time to process 1h of audio (on H100) | 37s | 14s |
95
+
96
+
97
+ Create a [`pyannoteAI`](https://dashboard.pyannote.ai) account, change one line of code, and enjoy free cloud credits to try [`precision-2`](https://pyannote.ai/blog/precision-2) premium diarization:
98
+
99
+ ```python
100
+ # perform premium speaker diarization on pyannoteAI cloud
101
+ pipeline = Pipeline.from_pretrained('pyannote/speaker-diarization-precision-2', token="PYANNOTEAI_API_KEY")
102
+ better_output = pipeline('/path/to/audio.wav')
103
+ ```