Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Checks whether two audio recordings come from the same speaker and can output speaker embeddings, using an ECAPA-TDNN model in SpeechBrain. For developers and speech researchers.
spkrec-ecapa-voxceleb is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download speechbrain/spkrec-ecapa-voxceleb
spkrec-ecapa-voxceleb is a pretrained speaker verification model for SpeechBrain. It tells you whether two recordings come from the same person, and it can also output speaker embeddings, which are vectors of numbers that describe a voice. It was trained on the Voxceleb 1 and Voxceleb2 training data.
Developers and speech researchers who need to compare voices in Python are the main fit. Data teams can use the embeddings to group recordings by speaker.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Security | Application developers | Check whether two recordings share a speaker | Compare a new recording with one stored earlier |
| Audio analysis | Data teams | Extract embeddings to group recordings by voice | Sort a folder of recordings by speaker |
| Research | Speech researchers | Use it as a baseline for speaker verification | Compare their own results on the Voxceleb1 test set |
If you need speech to text, voice cloning or a model proven on your own data, you can skip it.
Use it in Python scripts that run SpeechBrain.
| Use case | Who | What they get back |
|---|---|---|
| Same-speaker check | Developers | A score and a prediction of 1 for the same speaker or 0 for different ones |
| Voice embeddings | Data teams | One embedding per recording, ready for comparing or grouping |
| Baseline testing | Researchers | A pretrained reference system for speaker verification |
You need Python, SpeechBrain and some audio.
pip install -U huggingface_hub hf download speechbrain/spkrec-ecapa-voxceleb
Load the classifier by its model name and pass it a recording to get 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)To compare two recordings, load the verification class and call verify_files on both files.
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| Tool | What it does |
|---|---|
| from_hparams | Loads the model by its name, and savedir sets where it is stored |
| encode_batch | Turns a loaded recording into speaker embeddings |
| verify_files | Compares two audio files and returns a score and a prediction |
| classify_file | Converts audio to the expected format when it is needed |
If you use encode_batch or classify_batch, make sure your audio tensor already has the expected sampling rate.
You pass verify_files two recordings from different people. It returns a score and a prediction of 0. With two recordings from the same person, the prediction is 1.
Think of it as a voice comparer. You give it two recordings, and it says whether one person spoke in both. A good first try is to run the verification snippet on two short recordings you have the right to use.
The system is an ECAPA-TDNN model, a mix of convolutional and residual blocks. Attentive statistical pooling produces the embeddings, training used Additive Margin Softmax Loss, and verification takes the cosine distance between two embeddings. The card reports an equal error rate of 0.80% on the cleaned Voxceleb1 test set.
Other people have published 6 quantized and 16 fine-tuned versions of it. The card also describes how to train the model from scratch with the SpeechBrain recipes.
Checks whether two audio recordings come from the same speaker and can output speaker embeddings, using an ECAPA-TDNN model in SpeechBrain. For developers and speech researchers.
Made by speechbrain on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: spkrec-ecapa-voxceleb is a pretrained speaker verification model for SpeechBrain. It tells you whether two recordings come from the same person, and it can also output speaker embeddings, which are vectors of numbers that describe a voice. It was trained on the Voxceleb 1 and Voxceleb2 training data.
Who it suits: Developers and speech researchers who need to compare voices in Python are the main fit. Data teams can use the embeddings to group recordings by speaker.
Industry | Who uses it | How they use it | Example
Security | Application developers | Check whether two recordings share a speaker | Compare a new recording with one stored earlier
Audio analysis | Data teams | Extract embeddings to group recordings by voice | Sort a folder of recordings by speaker
Research | Speech researchers | Use it as a baseline for speaker verification | Compare their own results on the Voxceleb1 test set
If you need speech to text, voice cloning or a model proven on your own data, you can skip it.
Where to use it: Use it in Python scripts that run SpeechBrain.
Use case | Who | What they get back
Same-speaker check | Developers | A score and a prediction of 1 for the same speaker or 0 for different ones
Voice embeddings | Data teams | One embedding per recording, ready for comparing or grouping
Baseline testing | Researchers | A pretrained reference system for speaker verification
How to set it up: You need Python, SpeechBrain and some audio.
pip install -U huggingface_hub
hf download speechbrain/spkrec-ecapa-voxceleb
How to use it: Load the classifier by its model name and pass it a recording to get 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)
To compare two recordings, load the verification class and call verify_files on both files.
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
Tool | What it does
from_hparams | Loads the model by its name, and savedir sets where it is stored
encode_batch | Turns a loaded recording into speaker embeddings
verify_files | Compares two audio files and returns a score and a prediction
classify_file | Converts audio to the expected format when it is needed
If you use encode_batch or classify_batch, make sure your audio tensor already has the expected sampling rate.
Example: You pass verify_files two recordings from different people. It returns a score and a prediction of 0. With two recordings from the same person, the prediction is 1.
For newcomers and experts: Think of it as a voice comparer. You give it two recordings, and it says whether one person spoke in both. A good first try is to run the verification snippet on two short recordings you have the right to use.
The system is an ECAPA-TDNN model, a mix of convolutional and residual blocks. Attentive statistical pooling produces the embeddings, training used Additive Margin Softmax Loss, and verification takes the cosine distance between two embeddings. The card reports an equal error rate of 0.80% on the cleaned Voxceleb1 test set.
Load a recording at 16kHz with one channel
Convolutional and residual blocks process it
Attentive pooling makes a speaker embedding
Cosine distance compares two embeddings
A score and a 0 or 1 prediction come back
Good to know: Other people have published 6 quantized and 16 fine-tuned versions of it. The card also describes how to train the model from scratch with the SpeechBrain recipes.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download speechbrain/spkrec-ecapa-voxceleb
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| spkrec-ecapa-voxceleb This page | 1,912,322 | 370 | — | apache-2.0 | |
| wespeaker-voxceleb-resnet34-LMShares speaker · pytorch | 5,889,758 | 226 | — | cc-by-4.0 | |
| mine-embed-v1Shares embeddings · pytorch | 77 | 6 | 57.8M | apache-2.0 | |
| hs-embed-1Shares embeddings | 22,412 | 7 | 112M | mit | |
| all-MiniLM-L6-v2Shares pytorch | 174,740,184 | 6,104 | 22.7M | apache-2.0 | |
| bge-small-en-v1.5Shares pytorch | 45,750,548 | 671 | 33.4M | mit |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…