Simple diarization model
53
stars
17
commits
Python
primary language
Jun 13, 2025
updated
A simple diarization module using pyannote voice activity detection, speechbrain speaker embedding extractor and AHC clustering.
git clone https://github.com/JaesungHuh/SimpleDiarization.git --recursive
We recommend to create conda environment with python version >= 3.11.
conda create -n simple python=3.11
conda activate simple
pip install -r requirements.txt
Please install the packages using the instructions from official websites.
python main.py --cfg_file CONFIG_FILE
ffmpeg -i INPUT_AUDIO -acodec pcm_s16le -ac 1 -ar 16000 OUT_AUDIO
You need to change the configuration file for your own use. Please refer to config.yaml.
misc:
input_list: "data/example.list"
output_dir: "data/example_result"
device: "cuda"
audio:
sr: 16000
vad:
ref_vad: false
merge_vad: false
ref_suffix: ".lab"
pyannote_token: PUT YOUR PYANNOTE TOKEN IN HERE
min_duration_on: 0.1
min_duration_off: 0.1
embedding:
win_length: 1.5
hop_length: 0.5
cluster:
num_cluster: None
threshold: 0.8
normalize: false
eval:
run: false
collar: 0.25
ignore_overlaps: false
data/examples. The result should be DER : 1.17% and JER : 3.41%.| DER | JER | |
|---|---|---|
| VoxConverse dev set | 5.91% | 17.17% |
| VoxConverse test set | 6.81% | 34.77% |
We thank people who kindly open-source the models I used here.
@inproceedings{bredin2020pyannote,
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-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
pages={7124--7128},
year={2020},
organization={IEEE}
}
@misc{speechbrain,
title={{SpeechBrain}: A General-Purpose Speech Toolkit},
author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
year={2021},
eprint={2106.04624},
archivePrefix={arXiv},
primaryClass={eess.AS},
note={arXiv:2106.04624}
}
Python
100.0%
Simple diarization model
53
stars
17
commits
Python
primary language
Jun 13, 2025
updated
A simple diarization module using pyannote voice activity detection, speechbrain speaker embedding extractor and AHC clustering.
git clone https://github.com/JaesungHuh/SimpleDiarization.git --recursive
We recommend to create conda environment with python version >= 3.11.
conda create -n simple python=3.11
conda activate simple
pip install -r requirements.txt
Please install the packages using the instructions from official websites.
python main.py --cfg_file CONFIG_FILE
ffmpeg -i INPUT_AUDIO -acodec pcm_s16le -ac 1 -ar 16000 OUT_AUDIO
You need to change the configuration file for your own use. Please refer to config.yaml.
misc:
input_list: "data/example.list"
output_dir: "data/example_result"
device: "cuda"
audio:
sr: 16000
vad:
ref_vad: false
merge_vad: false
ref_suffix: ".lab"
pyannote_token: PUT YOUR PYANNOTE TOKEN IN HERE
min_duration_on: 0.1
min_duration_off: 0.1
embedding:
win_length: 1.5
hop_length: 0.5
cluster:
num_cluster: None
threshold: 0.8
normalize: false
eval:
run: false
collar: 0.25
ignore_overlaps: false
data/examples. The result should be DER : 1.17% and JER : 3.41%.| DER | JER | |
|---|---|---|
| VoxConverse dev set | 5.91% | 17.17% |
| VoxConverse test set | 6.81% | 34.77% |
We thank people who kindly open-source the models I used here.
@inproceedings{bredin2020pyannote,
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-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
pages={7124--7128},
year={2020},
organization={IEEE}
}
@misc{speechbrain,
title={{SpeechBrain}: A General-Purpose Speech Toolkit},
author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
year={2021},
eprint={2106.04624},
archivePrefix={arXiv},
primaryClass={eess.AS},
note={arXiv:2106.04624}
}
Python
100.0%