ECAPA-TDNN Kyrgyz Speaker Embedding (Saidzoda Lab)
How to get access: please fill in the short form at saidzoda.com/access. We approve requests after we receive the form.
Fine-tune of speechbrain/spkrec-ecapa-voxceleb (Apache-2.0) on Kyrgyz speaker classification (AAM-softmax), replicating the Tajik ECAPA speaker-verification recipe (Tohirju/ecapa-tdnn-tajik) verbatim (same code, same architecture, same eval methodology) with Kyrgyz data.
Result
Equal-error-rate (EER), full-utterance embeddings, L2-normalized, raw cosine similarity
(no mean_var_norm_emb centering — see Methodology below):
| stock ecapa-voxceleb | Kyrgyz fine-tune (this model) | Δ | |
|---|---|---|---|
| closed-set EER | 4.33% | 1.59% | −2.74 pts (better) |
| open-set EER | 1.46% | 2.26% | +0.80 pts (worse, small) |
Open-set = 8 speakers never seen during training (39 train speakers, 4,447 train-pool utterances — the thinnest of the three CA-langs data pools, see Data section). As with Uzbek and Kazakh, closed-set discrimination improved but open-set generalization regressed slightly — a much smaller regression than Uzbek/Kazakh, though the absolute numbers here have a wider confidence interval given the small open-set trial pool.
Training
- Trunk: ECAPA-TDNN, kept from
speechbrain/spkrec-ecapa-voxceleb(embedding_model.ckptloaded as-is), fine-tuned. Classifier head: freshly initialized, sized to the Kyrgyz train-speaker count (39 classes). - AAM-softmax: margin=0.2, scale=30.0. epochs=8, batch_size=32, lr=1e-4, 3s random crops. Identical hyperparameters to the Tajik/Uzbek/Kazakh runs (no per-language tuning).
- Data:
/data/tts_prep/ky/manifest.jsonl— a 234-speaker Kyrgyz ASR-derived diarization bank (ECAPA-clustered pseudo-speaker labels, 16kHz), genuinely thin relative to Uzbek/Kazakh/Tajik (see/data/vad_ca/ky/STATS.mdfor the corpus-level shortfall vs. Tajik: Kyrgyz has far less openly-licensed speech available on this box). No subsampling was applied (all of it was used); instead the speaker-eligibility floor was raised from 8 to 25 clips/speaker (vs. the Tajik/Uzbek/Kazakh default) to keep enough utterances per training speaker for a meaningful fine-tune, at the cost of a smaller train pool (39 speakers / 4,447 utts vs. ~24-29 speakers / ~10-13k utts for the others). This scale difference should be flagged in any citation of this result. - Speaker labels are ECAPA-clustering pseudo-labels, not human-verified — a known limitation that applies equally to the stock-vs-finetuned comparison above.
- Hardware: 1x H100 (Nvidia Brev), GPU7, ~42s training wall-clock.
Files
embedding_model.ckpt— ECAPA-TDNN trunk weights (speechbrain state_dict), best checkpoint by validation accuracy.classifier.ckpt— AAM-softmax classifier head (Kyrgyz train-speaker classes; not needed for embedding extraction, included for reproducibility).ecapa_common.py— the exact model-construction + feature-pipeline code used to build this architecture.label_map.json— {original pseudo speaker id → contiguous training label}.
How to use
import torch
from huggingface_hub import hf_hub_download
repo_id = "Tohirju/ecapa-tdnn-kyrgyz"
common_path = hf_hub_download(repo_id, "ecapa_common.py")
ckpt_path = hf_hub_download(repo_id, "embedding_model.ckpt")
import importlib.util
spec = importlib.util.spec_from_file_location("ecapa_common", common_path)
ecapa_common = importlib.util.module_from_spec(spec)
spec.loader.exec_module(ecapa_common)
model = ecapa_common.build_embedding_model(device="cpu")
state_dict = torch.load(ckpt_path, map_location="cpu")
model.load_state_dict(state_dict)
model.eval()
compute_features, mean_var_norm = ecapa_common.build_feature_pipeline(device="cpu")
wav = ecapa_common.load_wav_16k("some_kyrgyz_utterance.wav")
emb = ecapa_common.embed_utterance(wav, compute_features, mean_var_norm, model, device="cpu")
# emb: [192] L2-normalizable speaker embedding
License
Apache-2.0 (inherited from the speechbrain base model).
Caveats
- Training-speaker labels are unverified pseudo-labels from an ECAPA-clustering diarization pass, not human-annotated ground truth.
- Data scale is thinner than Uzbek/Kazakh/Tajik — 39 train speakers / 4,447 utterances,
vs. ~24-29 speakers / ~10-13k utterances for the others (Kyrgyz has less openly-licensed
speech on this box; see
/data/vad_ca/ky/STATS.md). Treat the absolute EER numbers with more caution than the other two CA-langs models. - Open-set EER regressed slightly relative to stock (see Result).
- Eval methodology deliberately skips speechbrain's
mean_var_norm_embglobal-centering step, applied identically to both models, so the head-to-head delta is fair even though it isn't speechbrain's ownverify_filesproduction pipeline.
This repo is public but gated (manual approval), per Saidzoda Lab policy.