Views
No views yet
| Model | Params | Flops | LM | AS-Norm | vox1-O-clean | vox1-E-clean | vox1-H-clean |
|---|---|---|---|---|---|---|---|
| ECAPA_TDNN_GLOB_c512-ASTP-emb192 | 6.19M | 1.04G | × | × | 1.069 | 1.209 | 2.310 |
| × | √ | 0.957 | 1.128 | 2.105 | |||
| √ | × | 0.878 | 1.072 | 2.007 | |||
| √ | √ | 0.782 | 1.005 | 1.824 |
pip install git+https://github.com/wenet-e2e/wespeaker.git1git clone https://github.com/wenet-e2e/wespeaker.git
2cd wespeaker
3pip install -e .1$ wespeaker -p ecapa_tdnn512_download_dir --task embedding --audio_file audio.wav --output_file embedding.txt
2$ wespeaker -p ecapa_tdnn512_download_dir --task embedding_kaldi --wav_scp wav.scp --output_file /path/to/embedding
3$ wespeaker -p ecapa_tdnn512_download_dir --task similarity --audio_file audio.wav --audio_file2 audio2.wav
4$ wespeaker -p ecapa_tdnn512_download_dir --task diarization --audio_file audio.wav1import wespeaker
2
3model = wespeaker.load_model_local(ecapa_tdnn512_download_dir)
4# set_gpu to enable the cuda inference, number < 0 means using CPU
5model.set_gpu(0)
6
7# embedding/embedding_kaldi/similarity/diarization
8embedding = model.extract_embedding('audio.wav')
9utt_names, embeddings = model.extract_embedding_list('wav.scp')
10similarity = model.compute_similarity('audio1.wav', 'audio2.wav')
11diar_result = model.diarize('audio.wav')
12
13# register and recognize
14model.register('spk1', 'spk1_audio1.wav')
15model.register('spk2', 'spk2_audio1.wav')
16model.register('spk3', 'spk3_audio1.wav')
17result = model.recognize('spk1_audio2.wav')1@article{desplanques2020ecapa,
2 title={Ecapa-tdnn: Emphasized channel attention, propagation and aggregation in tdnn based speaker verification},
3 author={Desplanques, Brecht and Thienpondt, Jenthe and Demuynck, Kris},
4 journal={arXiv preprint arXiv:2005.07143},
5 year={2020}
6}
7
8@inproceedings{wang2023wespeaker,
9 title={Wespeaker: A research and production oriented speaker embedding learning toolkit},
10 author={Wang, Hongji and Liang, Chengdong and Wang, Shuai and Chen, Zhengyang and Zhang, Binbin and Xiang, Xu and Deng, Yanlei and Qian, Yanmin},
11 booktitle={IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
12 pages={1--5},
13 year={2023},
14 organization={IEEE}
15}