ECAPA-TDNN VoxCeleb

ECAPA_TDNN_VOXCELEB

Speaker embeddings, a 192-number voice print per recording, for checking whether two recordings are of the same speaker and for grouping speech by speaker.

Embeddingsembeddingsspeaker-verificationvoiceecapa-tdnnapache-2.0Fine-tunable
ECAPA-TDNN VoxCeleb: Embeddings model on Kainguru

About ECAPA-TDNN VoxCeleb

Capabilities

  • Speaker verification — compare the voice prints of two recordings; the same speaker gives a high cosine similarity
  • Diarisation building block — cluster the voice prints of speech segments to find who spoke when
  • Independent of language — it models the voice, not the words
  • Fine-tunable — adapt it to your own speakers, microphones or telephone audio with labelled clips

Good to know

  • Voice prints are biometric data. Use them only with the speakers' consent, for verification and diarisation, as data-protection law requires.
  • Audio is resampled to 16 kHz mono; recordings may be 0.5 to 60 seconds long, up to 16 per request. Each should hold one speaker.
  • A cosine similarity above about 0.25 is the toolkit's default sign of the same speaker: set your own threshold on recordings like yours.
  • Billed per second of audio sent.
  • Trained on VoxCeleb 1 and 2, interviews of celebrities, mostly in English.
  • A fine-tuned model has a vector space of its own; compare voice prints only from the same model.

ECAPA-TDNN VoxCeleb inputs and output

NameTypeRequiredDefaultDetails
audiofile listYes—1 to 16 speech recordings (WAV, MP3, FLAC, OGG, M4A, AAC or WebM) of 0.5 to 60 seconds and up to 50 MB each, ideally one speaker each; one voice print per recording.
1–16 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm

Output. JSON: {"embeddings": [[...], ...], "dimensions": 192}, one unit-length vector per recording in the order sent: the dot product of two is their cosine similarity.

Run ECAPA-TDNN VoxCeleb with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=ECAPA_TDNN_VOXCELEB" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "audio": [
      "https://example.com/input.png"
    ]
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "ECAPA_TDNN_VOXCELEB",
        {
          "audio": [
            "https://example.com/input.png"
          ]
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune ECAPA-TDNN VoxCeleb

You can fine-tune ECAPA-TDNN VoxCeleb on your own data and run the tuned model through the same API. Dataset: 4 to 2000 {file, text} items: a clip of one person speaking (1 to 30 seconds, up to 50 MB) and a name or id for that speaker (up to 100 characters); at least 2 speakers.

The steps are in the docs.

ECAPA-TDNN VoxCeleb pricing

Price per second: 0.006555 credits ($0.00006555). The price is shown again before every run; all prices are on the pricing page.

Licence and source

All MiniLM L6 v2: Embeddings model on Kainguru
Embeddings

All MiniLM L6 v2

Fast, compact English sentence embeddings for semantic search, clustering and finding duplicate texts.

Fine-tunable
All MPNet Base v2: Embeddings model on Kainguru
Embeddings

All MPNet Base v2

English sentence and paragraph embeddings for semantic search, clustering and finding similar texts.

Fine-tunable
CLAP HTSAT Fused: Embeddings model on Kainguru
Embeddings

CLAP HTSAT Fused

Audio and text embeddings in one 512-dimensional space, for searching sounds by description, finding similar sounds…

Fine-tunable
Nomic Embed Text v1: Embeddings model on Kainguru
Embeddings

Nomic Embed Text v1

English text embeddings for search, clustering and classification, for texts up to 8,192 tokens long.

Fine-tunable