[Models](/models)/[Speech & Audio](/models?category=speech)/speechbrain/spkrec-ecapa-voxceleb

HFSpeaker DiarizationApache-2.0

# spkrec-ecapa-voxceleb

by speechbrain

192-dimensional speaker embeddings from VoxCeleb 1 and 2

3.4Mdl/month

Not stated on the model cardparams

[HuggingFace](https://huggingface.co/speechbrain/spkrec-ecapa-voxceleb)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`speechbrain/spkrec-ecapa-voxceleb`

## Deploy SpeechBrain ECAPA-TDNN

Single-tenant

Mixpeek has no managed extractor that runs these weights. On a single-tenant deployment you upload them and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

This model turns a stretch of speech into 192 numbers that describe the voice rather than the words. Two clips of the same person land close together under cosine distance and clips of different people land apart, which is the entire interface. Verification, diarization and open-set naming against a gallery you supply are all built on that one operation.

SpeechBrain trains it on the VoxCeleb 1 and VoxCeleb 2 training sets and expects 16 kHz mono audio. The model card reports 0.80% EER on the cleaned VoxCeleb1 test set. It is Apache-2.0 and runs on a CPU, so there is no key to get and no per-minute charge.

On Mixpeek the embedding is what you store. Put it on a per-segment document beside the transcript and the speaker becomes a filter instead of a search, so a query for the moment somebody pushed back on a deadline can be narrowed to one voice you already resolved.

## Architecture

Time-delay neural network with squeeze-excitation Res2Blocks, multi-layer feature aggregation and attentive statistics pooling, which is what the ECAPA acronym spells out. The SpeechBrain configuration reads 80 mel filterbanks into channels of \[1024, 1024, 1024, 1024, 3072\] and projects to a 192-dimensional embedding (lin\_neurons: 192 in hyperparams.yaml). Scoring is cosine similarity between two embeddings, so adding a speaker means storing one more vector and retraining nothing.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor runs these weights, so ECAPA-TDNN runs on your side and the
// embedding is upserted through POST /v1/namespaces/{namespace\_id}/documents/upsert.
// On a single-tenant deployment the other path is to upload the weights:
// POST /v1/namespaces/{id}/models accepts the huggingface format and a custom
// plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_call\_segments",
      documents: \[
        {
          document\_id: "call-00412-seg-07",
          // Keep the resolved speaker and the score as payload so they are
          // filterable, and store the 192-d vector so an unknown voice can be
          // matched against the gallery later.
          payload: {
            transcript: segment.text,
            speaker\_id: match.speakerId,
            speaker\_score: match.cosine,
            start\_s: segment.start,
            end\_s: segment.end,
          },
          vectors: { "speaker-embedding": ecapaEmbedding },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// multimodal\_extractor@v2 runs transcription over a bucket with
// run\_transcription. It gives you the words without the voice identity.

## Capabilities

*   192-dimensional speaker embedding from any length of 16 kHz mono speech
*   Speaker verification by cosine distance, with no per-speaker training
*   Open-set identification against a gallery you build yourself
*   Supplies the embedding step of a diarization pipeline
*   Apache-2.0 and CPU-capable, so a back catalogue costs machine time and nothing else

## Use Cases on Mixpeek

Attach a speaker id to every transcript segment so search can be scoped to one person

Deduplicate a call archive by voice when the filenames and metadata disagree

Check whether a new recording contains a speaker already in your library

Build a per-speaker index over meetings and interviews rather than a per-file one

## Benchmarks

Dataset

Metric

Score

Source

VoxCeleb1-test (cleaned)

EER

0.80%

speechbrain/spkrec-ecapa-voxceleb model card, 05-03-21 release row

## Performance

Input Size16 kHz mono, variable length

Embedding Dim192

GPU LatencyInput dependent

GPU ThroughputBatch dependent

GPU MemoryModel dependent

We have not published our own measurement on Mixpeek infrastructure, so no latency figure is quoted here. Accuracy on short probes is the number that moves: a one-second clip carries much less speaker evidence than ten seconds.

## Common Pipeline Companions

[

openai/whisper-large-v3

Produces the transcript each embedded segment is attached to

](/model/openai/whisper-large-v3)[

pyannote/speaker-diarization-3.1

Cuts the audio into speaker-homogeneous segments to embed

](/model/pyannote/speaker-diarization-3.1)[

pyannote/wespeaker-voxceleb-resnet34-LM

The other free self-hosted recognizer, worth scoring side by side

](/model/pyannote/wespeaker-voxceleb-resnet34-LM)

## Frequently Asked Questions

### Does this tell me who is speaking?

Only against a gallery you build. The model gives you a vector, and naming a voice means comparing that vector to labelled examples you already have and applying a threshold. With no gallery it can still tell you that two clips are the same person.

### How much audio does it need?

More is better and the curve is steep at the short end. Published speaker-verification work and our own reading both show accuracy climbing sharply from around one second up to roughly ten, so segment length is worth treating as a tuning parameter rather than an accident of the diarizer.

### ECAPA-TDNN or WeSpeaker ResNet34-LM?

Both are free, self-hosted and close enough on VoxCeleb that the published EER will not decide it for you. Score them on your own audio: room acoustics, codec and segment length move the result more than the architecture does.

## Explore on Mixpeek

[

More Speech & Audio models

Compare alternatives in this category

](/models?category=speech)[

Best Audio Processing Tools

Hand-picked tools & platforms compared

](/curated-lists/best-audio-processing-tools)[

ASR Decoding: Beam Search & LM Fusion

Deep-dive technical guide

](/guides/asr-decoding-beam-search-lm-fusion)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationspeechbrain

FeatureSpeaker Diarization

Outputspeaker segments

Modalitiesvideo, audio

RetrieverSpeaker Filter

ParametersNot stated on the model card

LicenseApache-2.0

Downloads/mo3.4M

[

### Research Paper

ECAPA-TDNN: Emphasized Channel Attention, Propagation and Aggregation in TDNN Based Speaker Verification

arxiv.org](https://arxiv.org/abs/2005.07143)

### Build a pipeline with spkrec-ecapa-voxceleb

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

pyannote/speaker-diarization-3.1

Speaker Diarization

](/model/pyannote/speaker-diarization-3.1)[

pyannote/speaker-diarization-community-1

Speaker Diarization

](/model/pyannote/speaker-diarization-community-1)[

nvidia/diar\_sortformer\_4spk-v1

Speaker Diarization

](/model/nvidia/diar_sortformer_4spk-v1)[

pyannote/wespeaker-voxceleb-resnet34-LM

Speaker Diarization

](/model/pyannote/wespeaker-voxceleb-resnet34-LM)

### Related in Speech & Audio

[

openai/whisper-large-v3

Transcription

](/model/openai/whisper-large-v3)[

facebook/wav2vec2-large-960h

Transcription

](/model/facebook/wav2vec2-large-960h)[

distil-whisper/distil-large-v3

Transcription

](/model/distil-whisper/distil-large-v3)[

nvidia/parakeet-tdt-0.6b-v3

Transcription

](/model/nvidia/parakeet-tdt-0.6b-v3)