Run this model with HF Jobs

Run sanoramyun8/speaker-embedding-endpoint on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/sanoramyun8/speaker-embedding-endpoint. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/sanoramyun8/speaker-embedding-endpoint on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Speaker Embedding Endpoint

Custom HuggingFace Inference Endpoint for extracting speaker embeddings using SpeechBrain's ECAPA-TDNN model.

Model

This endpoint uses speechbrain/spkrec-ecapa-voxceleb model which achieves:

  • 0.80% EER on VoxCeleb1 test set
  • 192-dimensional speaker embeddings

Usage

API Request

curl -X POST \
  https://your-endpoint-url.endpoints.huggingface.cloud \
  -H "Authorization: Bearer YOUR_HF_TOKEN" \
  -H "Content-Type: audio/wav" \
  --data-binary "@audio.wav"

Response

{
  "embedding": [0.123, -0.456, ...],
  "dimension": 192,
  "model": "speechbrain/spkrec-ecapa-voxceleb"
}

Speaker Verification

To verify if two audio files are from the same speaker:

  1. Extract embeddings from both audio files
  2. Calculate cosine similarity between embeddings
  3. If similarity > 0.6 (threshold), same speaker
from scipy.spatial.distance import cosine

similarity = 1 - cosine(embedding1, embedding2)
is_same_speaker = similarity > 0.6

Project

Part of Deep Truth - AI Deepfake Voice Detection & Speaker Verification Service

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support