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.
Instructions to use sanoramyun8/speaker-embedding-endpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use sanoramyun8/speaker-embedding-endpoint with speechbrain:
# interface not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465---
license: apache-2.0
tags:
- speaker-embedding
- speaker-verification
- speechbrain
- ecapa-tdnn
- audio
library_name: speechbrain
pipeline_tag: audio-classification
---
# 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](https://huggingface.co/speechbrain/spkrec-ecapa-voxceleb) model which achieves:
- **0.80% EER** on VoxCeleb1 test set
- **192-dimensional** speaker embeddings
## Usage
### API Request
```bash
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
```json
{
"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
```python
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
- GitHub: https://github.com/yonghwan1106/deep-truth
- Demo: https://deep-truth.vercel.appREADME.mdAdded+65