SPAN-Echo v1.1 — AI-generated voice detector (English + Bangla)

SPAN-Echo answers one question about a speech recording: does this voice sound AI-generated (TTS / voice clone / vocoder) or human? It returns ai_generated, human or uncertain, a calibrated probability p_ai, and a per-chunk timeline (so partly synthetic clips can be spotted). It is the voice member of the Prahari SPAN series; in SPAN-Fusion this signal is capped at CAUTION — voice evidence alone never convicts, and human means "no signs of an AI voice", not "verified human".

Model microsoft/wavlm-base-plus, fine-tuned end to end (CNN front end frozen; two GPU runs, see Training) + learned layer weights + attentive statistics pooling + linear → 1 logit
Parameters 94.6M
Input any audio file ffmpeg/soundfile can read → 16 kHz mono → energy VAD → 3 s chunks, 1.5 s hop (≤ 40 chunks), per-chunk z-norm
Output mean chunk logit → Platt calibration per channel class (wideband / narrowband, detected from the signal) → p_ai; verdict ai_generated if p ≥ τ_hi, human if p ≤ τ_lo, else uncertain; < 1 s of speech → uncertain
Thresholds wideband τ_lo 0.50 / τ_hi 0.67; narrowband τ_lo 0.50 / τ_hi 0.90 (τ_hi = ≤ 1% false alarms on the calibration fit half)
Speed 20 s clip on 4 CPU threads: 4.4 s (Kaggle CPU), 1.3 s (4-vCPU dev container)
Files models/echo-v1.1/{model.safetensors, config.json, calibration.json, training_record.json} + the spanecho package (pure PyTorch/transformers; no download at inference)

Usage

After downloading this repository (huggingface_hub.snapshot_download), the weights are at models/echo-v1.1/ inside it.

import sys; from huggingface_hub import snapshot_download
repo = snapshot_download("Nabidnur/span-echo")
sys.path.insert(0, repo); from spanecho.pipeline import EchoDetector
det = EchoDetector(f"{repo}/models/echo-v1.1", threads=4)
print(det.analyze_file("call.wav"))                         # {'verdict': ..., 'p_ai': ..., 'timeline': [...], ...}

Command line and HTTP API (Python ≥ 3.10; ffmpeg needed only for mp3/ogg/opus/m4a/amr):

cd "$(python -c 'from huggingface_hub import snapshot_download as s; print(s("Nabidnur/span-echo"))')"
pip install -e ".[api]"                                  # editable install keeps models/echo-v1.1 next to the package
spanecho analyze call.wav --json                         # or: --model-dir /path/to/echo-v1.1, or SPANECHO_MODEL_DIR
uvicorn spanecho.api:app --port 8000                     # POST /span/echo/v1/analyze  (multipart field `audio`)
curl -F audio=@call.wav http://localhost:8000/span/echo/v1/analyze

Audio sent to the API is processed in memory and not stored.

Results (Echo-Eval-v1, clip level, full test sets, 95% bootstrap CIs)

Test sets are frozen manifests: In-the-Wild (10,000 clips), ASVspoof 2019 LA eval (2,500 bona fide + 400 per attack A07–A19 = 7,700), Bangla test (4,475: genuine FLEURS bn_in, Common Voice 13 bn, held-out OpenSLR 37/53 speakers; fake facebook/mms-tts-ben, gTTS bn, MLAAD-bn IndicF5 / Bark / Coqui VITS m+f). Each clip also has a telephony copy (8 kHz band limit + one codec chosen by a hash of the clip id from G.711 µ-law, GSM-FR, AMR-NB 12.2 / 4.75, Opus, MP3; recorded per clip in the manifests). None of these clips, speakers, corpora (except the ASVspoof 2019 family) or Bangla generators was used for training, model selection or calibration (eval/check_leakage.py: 0 violations).

Set EER % AUC TPR @ 1% FPR False alarms* Abstain* ECE
In-the-Wild clean 5.34 [4.86–5.79] 0.988 77.4% 2.83% 11.9% 0.020
In-the-Wild telephony 10.24 [9.62–10.81] 0.963 48.3% 1.79% 27.9% 0.027
ASVspoof19 LA eval clean 3.54 [3.13–3.97] 0.994 92.9% 1.12% 5.4% 0.042
ASVspoof19 LA eval telephony 9.29 [8.59–9.94] 0.967 59.1% 1.16% 20.5% 0.115
Bangla clean 12.67 [11.73–13.79] 0.950 59.3% 6.94% 3.0% 0.102
Bangla telephony 22.21 [20.96–23.41] 0.858 21.1% 4.87% 22.9% 0.130

* at the shipped thresholds: false alarm = genuine clip called ai_generated; abstain = uncertain.

Pre-registered release gates (eval/GATES.md, written before any model was trained; not changed since)

Gate Threshold v1.1 Result
G1 In-the-Wild EER clean ≤ 15% 5.34% PASS
G2 In-the-Wild EER telephony ≤ 21% 10.24% PASS
G3 ASVspoof19 EER clean / telephony ≤ 5% / ≤ 10% 3.54% / 9.29% PASS
G4 Bangla EER clean / telephony ≤ 10% / ≤ 15% 12.67% / 22.21% FAIL
G5 false alarms ≤ 2% Bangla/ASVspoof clean; ≤ 5% others Bangla clean 6.94% (others ≤ 4.87%) FAIL
G6 abstain rate ≤ 25% clean / ≤ 40% telephony max 11.9% / 27.9% PASS
G7 calibration (ECE) ≤ 0.05 ASVspoof/Bangla clean; ≤ 0.10 others Bangla clean 0.102, ASVspoof tel 0.115, Bangla tel 0.130 FAIL
G8 lowest EER among baselines not flagged as trained on that set Bangla clean/tel, ITW tel, ASVspoof tel wins ITW tel only (see below) FAIL
G9 size / CPU speed ≤ 100M; 20 s clip ≤ 5 s on 4 threads 94.6M; 4.44 s PASS
G10 integrity (no test clip / speaker / generator in train or calibration) 0 0 PASS

Leaderboard: SPAN-Echo vs AASIST and other public detectors (EER %, same rows for both systems)

AASIST was scored on the v1 hash subsets only (its full-set run hit the kernel time limit), so this comparison uses exactly those rows:

Set (rows) SPAN-Echo v1.1 AASIST (0.3M, ASVspoof19-trained) SPAN-Echo v1 (frozen, 2026-11-28)
In-the-Wild clean (2,421) 5.59 [4.55–6.59] 43.34 [41.31–45.44] 12.94 [11.26–14.35]
In-the-Wild telephony (1,209) 6.33 [4.90–8.16] 49.13 [46.36–52.38] 15.28 [13.50–17.15]
Bangla clean (1,120) 11.20 [9.59–13.30] 46.32 [42.64–48.71] 26.63 [23.94–29.25]
Bangla telephony (579) 17.90 [14.90–21.47] 40.86 [37.71–45.01] 33.23 [28.91–37.24]

Hugging Face detectors on the full sets (each with its own preprocessing, first 10 s of audio; † = documented/likely trained on that set):

System (params) ITW clean ITW tel ASV19 clean ASV19 tel Bangla clean Bangla tel
SPAN-Echo v1.1 (94.6M) 5.34 10.24 3.54 9.29 12.67 22.21
Gustking/wav2vec2-large-xlsr-deepfake (316M) 12.88 16.07 0.31 † 2.04 † 11.50 18.40
mo-thecreator/Deepfake-audio-detection (95M) 10.32 19.25 0.04 ‡ 1.96 ‡ 32.51 43.85
abhishtagatya/hubert-base-960h-itw-deepfake (95M) 1.44 † 11.68 † 24.29 31.19 49.13 37.85
HyperMoon/wav2vec2-base-960h-finetuned-deepfake (95M) 31.96 42.66 0.58 † 15.17 † 55.15 58.91
DavidCombei/wavLM-base-Deepfake_V2 (95M, label order unknown, better orientation) 0.95 11.60 0.12 21.16 28.81 40.22
MelodyMachine/Deepfake-audio-detection-V2 (95M) 51.62 48.51 18.00 38.36 47.74 56.94

‡ not documented, but 0.04% EER on unseen-attack ASVspoof19 eval strongly suggests training on it; likewise DavidCombei's 0.95% / 0.12% (flipped) on In-the-Wild / ASVspoof19 clean. Gate G8 uses only the pre-registered (documented) flags, so it is scored as a loss on ASVspoof telephony (vs mo-thecreator) and on Bangla (vs the 316M Gustking model, 3× our size budget); it is a win on In-the-Wild telephony (10.24 vs 11.60, same 10,000 rows). Full tables: eval/LEADERBOARD.md.

Training and calibration data

  • Training (eval/manifests/train_*.csv.gz): English — ASVspoof 2019 LA train/dev (bona fide + A01–A06), LibriSpeech, FLEURS en_us, edge-tts (34 voices), Piper (5 voices), vocoder copy-synthesis (HiFi-GAN, Vocos, EnCodec 6 kbps). Bangla — OpenSLR 53 + 37 (training speakers), SUBAK.KO, their copy-synthesis, edge-tts bn-BD/bn-IN, Piper bn_BD, indic-tiny-tts-bengali, SYSPIN VITS m/f. ≈ 51 h of VAD-compacted segments, sampled group-balanced (language × label × source/generator family), augmented (noise, reverb, RawBoost, telephony/app codecs, mixing) for both classes alike. Run 1 (echo-train-v1, one T4): 4,698 steps × 32 crops of 1.5–4 s, checkpoint 3,915 chosen on the dev half of the calibration split. Run 2 (echo-train-v2): continued from it with Bangla sampling share 0.6 and lower learning rates (1e-5 backbone / 3e-4 head), checkpoint at +762 steps chosen on the dev half.
  • Calibration split (speakers disjoint from train and test; includes calibration-only voices/generators and telephony copies): 5,217 clips × 2 channels. Dev half (id hash even) = checkpoint/model selection; fit half = Platt + thresholds. Candidates were ranked by macro EER on the fit half (pre-registered rule): run 2 4.57% < run 1 5.00% < frozen-backbone variant 9.93%, so run 2 ships. (On the test sets run 1 is better on Bangla telephony, 19.9% vs 22.2%; it is kept as span-echo-v1.1-ft1 in the leaderboard, but test results were not used to choose.)
  • Never used for anything but testing: In-the-Wild, ASVspoof 2019 LA eval, FLEURS bn_in, Common Voice bn, held-out OpenSLR speakers, facebook/mms-tts-ben, gTTS, MLAAD Bengali systems. No MMS-TTS or gTTS output in any language is in training.

Licences of training sources (decide before publishing)

Source (used in training/calibration) Licence Concern for redistributing derived weights
microsoft/wavlm-base-plus (backbone) MIT (microsoft/unilm); HF card has no licence tag none known
ASVspoof 2019 LA train/dev ODC-By 1.0 attribution
LibriSpeech (OpenSLR 12) CC BY 4.0 attribution
FLEURS en_us CC BY 4.0 attribution
SUBAK.KO CC BY 4.0 attribution
OpenSLR 53, OpenSLR 37 (Bangla genuine) CC BY-SA 4.0 ShareAlike: if weights are an adaptation, they must be released under CC BY-SA (no added NC)
facebook/encodec_24khz copy-synthesis (1,757 training segments) weights CC BY-NC 4.0 upstream (HF card untagged) NonCommercial: conflicts with BY-SA above; remove the copysynth-encodec6 rows and retrain for a clean BY-SA release
Microsoft Edge TTS output (≈ 6,700 en + bn training segments) service terms, no open licence unclear: needs legal review of the service terms for ML training / weight release
Piper voices (MIT code; bn_BD-google-medium trained on OpenSLR 37) MIT / voice cards low; bn voice inherits OpenSLR 37 provenance
SYSPIN/tts_vits_coquiai_BengaliMale no licence tag (female voice: CC BY 4.0) unknown — confirm with SYSPIN or drop
sulabhkatiyar/indic-tiny-tts-bengali CC BY 4.0 attribution
HiFi-GAN (microsoft/speecht5_hifigan), Vocos MIT none
Test-only (not in weights): In-the-Wild, ASVspoof19 eval, FLEURS bn_in, Common Voice (CC0), MMS-TTS & MLAAD (CC BY-NC 4.0), gTTS — none for the weights; NC test audio is not redistributed

The YAML licence cc-by-nc-sa-4.0 is the conservative reading (NC from EnCodec + SA from OpenSLR); strictly, NC and BY-SA cannot both be honoured, so a public release should either retrain without EnCodec copy-synthesis (→ CC BY-SA 4.0, after the Edge TTS and SYSPIN-male questions are cleared) or rely on legal advice that model weights are not adaptations of the training audio.

Limitations

  • Bangla is the weak spot (G4 fails): 12.7% EER clean, 22.2% telephony. Coqui VITS Bangla voices from MLAAD are often missed (slice EER 27.0% female, 16.6% male), and Common Voice Bangla genuine recordings are flagged too often (20.3% called AI on clean audio; overall Bangla clean false-alarm rate 6.9%). No extra crowd-sourced Bangla genuine speech could be added: Kathbath, IndicVoices and Shrutilipi are gated, and Bengali.AI Speech shares contributors with the held-out Common Voice set.
  • Telephony audio, very short clips (< 3 s), noisy/music-backed audio and unseen generator families are harder; calibration on ASVspoof-telephony and Bangla is outside the G7 targets (ECE 0.10–0.13).
  • Short fine-tuning (≈ 4,700 + 760 steps, ~4 h on one T4; the CPU data loader limits throughput) with one backbone; no seed or hyper-parameter search.
  • Earlier rows in the leaderboard (span-echo-v1, AASIST) were scored on documented hash subsets, not the full sets; subset EERs differ from full-set EERs by more than their bootstrap CIs suggest (clips from the same speaker/celebrity are correlated).
  • The baselines were run as their cards describe; several are probably trained on our test corpora (see ‡), so the comparison says more about generalisation of those checkpoints than about their architectures.

Intended use and misuse

  • Intended: one weak-to-moderate signal inside a larger fraud / scam triage flow (SPAN-Fusion), e.g. flagging a voice note or call recording for a human to look at; research on cross-lingual and telephony-robust spoof detection.
  • Not intended: sole evidence for accusing a person, legal or employment decisions, speaker verification, or any decision without human review. human is not a proof of authenticity. Do not use it to tune or validate voice-cloning systems to evade detection. Expect accuracy to drop on new generators; re-evaluate before relying on it.

Reproducibility

Kaggle kernels (private): echo-prep-*, echo-gen-*, echo-evalsets (data), echo-train-v1 (fine-tuning + baselines), echo-train-v2 (continued fine-tuning), echo-feat-* / echo-tp-* (frozen candidate + its test scoring). Code: training/kaggle/*.py (bundled by training/kaggle/build.py), training/calibrate.py (calibration rule), eval/ (harness, metrics, leakage check, eval.rescore, leaderboard). Decision log with timestamps: HANDOFF.md. Run records and per-clip scores: eval/results/*/.

Citation

@misc{span_echo_2026,
  title  = {SPAN-Echo v1.1: a 95M-parameter AI-generated voice detector for English and Bangla},
  author = {{Prahari SPAN team}},
  year   = {2026},
  note   = {Model card and Echo-Eval-v1 results; fine-tuned from microsoft/wavlm-base-plus}
}

Please also cite WavLM (Chen et al., 2022), ASVspoof 2019 (Wang et al., 2020), In-the-Wild (Müller et al., 2022), MLAAD (Müller et al., 2024), FLEURS (Conneau et al., 2023) and OpenSLR 37/53 (Kjartansson et al., 2018) when using the results.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Nabidnur/span-echo

Finetuned
(43)
this model

Evaluation results

  • EER % (95% bootstrap CI 4.86–5.79) on In-the-Wild (10,000-clip hash-ordered subset of Müller et al. 2022), clean
    test set self-reported
    5.340
  • AUC on In-the-Wild (10,000-clip hash-ordered subset of Müller et al. 2022), clean
    test set self-reported
    0.988
  • EER % (95% CI 9.62–10.81) on In-the-Wild, telephony copy (8 kHz + codec)
    test set self-reported
    10.240
  • EER % (95% CI 3.13–3.97) on ASVspoof 2019 LA eval (2,500 bona fide + 400 × A07–A19), clean
    self-reported
    3.540
  • EER % (95% CI 8.59–9.94) on ASVspoof 2019 LA eval, telephony copy
    self-reported
    9.290
  • EER % (95% CI 11.73–13.79) on Echo-Eval-v1 Bangla test (held-out generators, speakers, corpora), clean
    test set self-reported
    12.670
  • EER % (95% CI 20.96–23.41) on Echo-Eval-v1 Bangla test, telephony copy
    test set self-reported
    22.210