AI SeedbankHelp preserve open and free AI for humanity's future

← All models

speechbrain_spkrec-ecapa-voxceleb

speechbrain · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language: "en" thumbnail: tags:

  • speechbrain
  • embeddings
  • Speaker
  • Verification
  • Identification
  • pytorch
  • ECAPA
  • TDNN license: "apache-2.0" datasets:
  • voxceleb metrics:
  • EER widget:
  • example_title: VoxCeleb Speaker id10003 src: https://cdn-media.huggingface.co/speech_samples/VoxCeleb1_00003.wav
  • example_title: VoxCeleb Speaker id10004 src: https://cdn-media.huggingface.co/speech_samples/VoxCeleb_00004.wav



Speaker Verification with ECAPA-TDNN embeddings on Voxceleb

This repository provides all the necessary tools to perform speaker verification with a pretrained ECAPA-TDNN model using SpeechBrain. The system can be used to extract speaker embeddings as well. It is trained on Voxceleb 1+ Voxceleb2 training data.

For a better experience, we encourage you to learn more about SpeechBrain. The model performance on Voxceleb1-test set(Cleaned) is:

Release EER(%)
05-03-21 0.80

Pipeline description

This system is composed of an ECAPA-TDNN model. It is a combination of convolutional and residual blocks. The embeddings are extracted using attentive statistical pooling. The system is trained with Additive Margin Softmax Loss. Speaker Verification is performed using cosine distance between speaker embeddings.

Install SpeechBrain

First of all, please install SpeechBrain with the following command:

pip install git+https://github.com/speechbrain/speechbrain.git@develop

Please notice that we encourage you to read our tutorials and learn more about SpeechBrain.

Compute your speaker embeddings

import torchaudio
from speechbrain.inference.speaker import EncoderClassifier
classifier = EncoderClassifier.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb")
signal, fs =torchaudio.load('tests/samples/ASR/spk1_snt1.wav')
embeddings = classifier.encode_batch(signal)

The system is trained with recordings sampled at 16kHz (single channel). The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling classify_file if needed. Make sure your input tensor is compliant with the expected sampling rate if you use encode_batch and classify_batch.

Perform Speaker Verification

from speechbrain.inference.speaker import SpeakerRecognition
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb")
score, prediction = verification.verify_files("tests/samples/ASR/spk1_snt1.wav", "tests/samples/ASR/spk2_snt1.wav") # Different Speakers
score, prediction = verification.verify_files("tests/samples/ASR/spk1_snt1.wav", "tests/samples/ASR/spk1_snt2.wav") # Same Speaker

The prediction is 1 if the two signals in input are from the same speaker and 0 otherwise.

Inference on GPU

To perform inference on the GPU, add run_opts={"device":"cuda"} when calling the from_hparams method.

Training

The model was trained with SpeechBrain (aa018540). To train it from scratch follows these steps:

  1. Clone SpeechBrain:
git clone https://github.com/speechbrain/speechbrain/
  1. Install it:
cd speechbrain
pip install -r requirements.txt
pip install -e .
  1. Run Training:
cd  recipes/VoxCeleb/SpeakerRec
python train_speaker_embeddings.py hparams/train_ecapa_tdnn.yaml --data_folder=your_data_folder

You can find our training results (models, logs, etc) here.

Limitations

The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.

Referencing ECAPA-TDNN

@inproceedings{DBLP:conf/interspeech/DesplanquesTD20,
  author    = {Brecht Desplanques and
               Jenthe Thienpondt and
               Kris Demuynck},
  editor    = {Helen Meng and
               Bo Xu and
               Thomas Fang Zheng},
  title     = {{ECAPA-TDNN:} Emphasized Channel Attention, Propagation and Aggregation
               in {TDNN} Based Speaker Verification},
  booktitle = {Interspeech 2020},
  pages     = {3830--3834},
  publisher = {{ISCA}},
  year      = {2020},
}

Citing SpeechBrain

Please, cite SpeechBrain if you use it for your research or business.

@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}
}

About SpeechBrain

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:3503e18e2ed0427c6d710a6aa3619b89e76066fc&dn=speechbrain_spkrec-ecapa-voxceleb

Open magnet in torrent client · infohash 3503e18e2ed0427c6d710a6aa3619b89e76066fc

Files & hashes

PathSizesha1sha256
README.md5.3 KB (5,377 B)6023cecccb30eba7ed77fea84a9e47d334dd3a6c00f58c3cbd7a7510de9374080da0e82a4c4e8f4df567f7338fe6efe108be705a
classifier.ckpt5.3 MB (5,534,328 B)99517cce6df64989fb244039e17e01d62ed0d903fd9e3634fe68bd0a427c95e354c0c677374f62b3f434e45b78599950d860d535
config.json51 B (51 B)2e8b3b4d97ae58d7daa78954a5c7f5b8abb4293415ff7afad09adec0936c31493a7397c13f855914f4579a8393fe82649778a664
embedding_model.ckpt79.5 MB (83,316,686 B)2f40518a5993c71e1457fe956a1ae7008c71f2360575cb64845e6b9a10db9bcb74d5ac32b326b8dc90352671d345e2ee3d0126a2
example1.wav101.9 KB (104,390 B)2d5abbd526328179f0516569cb9ff5ddd289a1fcbf2dde5cb516939ff619d62fc07d4f4bec5b5d521aee3d07ae51828c9d93be0b
example2.flac38.7 KB (39,589 B)a38e3061f91ba51b02b7ef4c5fd4d088659c183d0bf6c0ab8a2a9e8cbf89486c33aab80b608a5033d72214436e0557e085484bc9
hyperparams.yaml1.9 KB (1,919 B)70e4cd0beb74ca08a2df9de6bd79d938670a4d156f78854fa04ba59e761437b76a2575d3aba5e5016de3e9b69f0c9a5077fb1a41
label_encoder.txt125.6 KB (128,619 B)72c6fa7b170cbfd169df5e09326cd97febdf086ae13c3a167bb4112685670ee896d20e2b565af16b3a4ceeaa8689fa4d22adb8b9
mean_var_norm_emb.ckpt1.9 KB (1,921 B)1978c5e7f20d5ffd14c8a932a7e85a09816f3da9cd70225b05b37be64fc5a95e24395d804231d43f74b2e1e5a513db7b69b34c33

Cite this release

Canonical URL
https://aiseedbank.org/models/speechbrain_spkrec-ecapa-voxceleb/
Slug
speechbrain_spkrec-ecapa-voxceleb
Infohash
3503e18e2ed0427c6d710a6aa3619b89e76066fc
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: speechbrain_spkrec-ecapa-voxceleb.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryspeechbrain/spkrec-ecapa-voxceleb
Revision (pinned)0f99f2d0ebe89ac095bcc5903c4dd8f72b367286
Fetched at2026-09-04T05:41:16Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T05:41:19Z

apache-2.085.0 MB (89,132,880 bytes)speechbrainembeddingsSpeakerVerificationIdentificationpytorchECAPATDNN1 language (en)paper: 2106.04624