---
title: speaker-segmentation
canonical_url: "https://www.modelscope.cn/models/pyannote/speaker-segmentation"
md_url: "https://www.modelscope.cn/models/pyannote/speaker-segmentation.md"
repository: pyannote/speaker-segmentation
last_updated: 2024-11-07
license: mit
library_name:
  - pytorch
frameworks:
  - pytorch
downloads: 1840
stars: 0
tags:
  - pyannote
  - pyannote-audio
  - pyannote-audio-pipeline
  - audio
  - voice
  - speech
  - speaker
  - speaker-segmentation
  - speaker-diarization
  - speaker-change-detection
  - voice-activity-detection
  - overlapped-speech-detection
  - automatic-speech-recognition
---

# speaker-segmentation

> speaker-segmentation - pyannote 在 ModelScope 开源的模型。Using this open-source model in production? Consider switching to pyannoteAI for better and faster options.

pyannote/speaker-segmentation 是 ModelScope 魔搭社区上的机器学习模型，采用 mit 许可。

- **Repository**: pyannote/speaker-segmentation
- **License**: mit
- **Tags**: pyannote, pyannote-audio, pyannote-audio-pipeline, audio, voice, speech, speaker, speaker-segmentation, speaker-diarization, speaker-change-detection, voice-activity-detection, overlapped-speech-detection, automatic-speech-recognition
- **Downloads**: 1840
- **Stars**: 0
- **Last updated**: 2024-11-07

Source: https://www.modelscope.cn/models/pyannote/speaker-segmentation

---

Using this open-source model in production?  
Consider switching to [pyannoteAI](https://www.pyannote.ai) for better and faster options.

# 🎹 Speaker segmentation

Relies on pyannote.audio 2.1: see [installation instructions](https://github.com/pyannote/pyannote-audio#installation).

```python
# 1. visit hf.co/pyannote/segmentation and accept user conditions
# 2. visit hf.co/settings/tokens to create an access token
# 3. instantiate pretrained speaker segmentation pipeline
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained("pyannote/speaker-segmentation")
output = pipeline("audio.wav")

for turn, _, speaker in output.itertracks(yield_label=True):
    # speaker speaks between turn.start and turn.end
    ...
```

⚠️ This pipeline does not address [speaker diarization](https://huggingface.co/pyannote/speaker-diarization). 


## Support

For commercial enquiries and scientific consulting, please contact [me](mailto:herve@niderb.fr).  
For [technical questions](https://github.com/pyannote/pyannote-audio/discussions) and [bug reports](https://github.com/pyannote/pyannote-audio/issues), please check [pyannote.audio](https://github.com/pyannote/pyannote-audio) Github repository.


## Citation

```bibtex
@inproceedings{Bredin2021,
  Title = {{End-to-end speaker segmentation for overlap-aware resegmentation}},
  Author = {{Bredin}, Herv{\'e} and {Laurent}, Antoine},
  Booktitle = {Proc. Interspeech 2021},
  Address = {Brno, Czech Republic},
  Month = {August},
  Year = {2021},
```

```bibtex
@inproceedings{Bredin2020,
  Title = {{pyannote.audio: neural building blocks for speaker diarization}},
  Author = {{Bredin}, Herv{\'e} and {Yin}, Ruiqing and {Coria}, Juan Manuel and {Gelly}, Gregory and {Korshunov}, Pavel and {Lavechin}, Marvin and {Fustes}, Diego and {Titeux}, Hadrien and {Bouaziz}, Wassim and {Gill}, Marie-Philippe},
  Booktitle = {ICASSP 2020, IEEE International Conference on Acoustics, Speech, and Signal Processing},
  Address = {Barcelona, Spain},
  Month = {May},
  Year = {2020},
}
```
