Models
Jabberjay bundles eleven model families. Each is downloaded from Hugging Face Hub on first use and cached locally, then kept in memory for the lifetime of the process so repeated detect() calls for the same model skip both the download and the reload. Call Jabberjay.clear_cache() to release them when you're done.
Every model is pinned to a reviewed commit of its Hugging Face repository, so an upstream change can never silently alter your results.
Choosing a model
| Model | Type | Datasets | Requires |
|---|---|---|---|
| VIT | Vision Transformer | ASVspoof2019, ASVspoof5, VoxCelebSpoof | dataset, visualisation |
| AST | Audio Spectrogram Transformer | ASVspoof2019, ASVspoof5, VoxCelebSpoof | dataset |
| DFArena1B | Wav2Vec2-1B + Conformer | ASVspoof19/24, Codecfake, MLAAD, +5 | — |
| Spectra0 | Wav2Vec2 + ECAPA-TDNN | ASVspoof19/21, ASVspoof5, In-the-Wild | — |
| SpectraAASIST | Wav2Vec2 + AASIST | ASVspoof19/21, ASVspoof5, In-the-Wild | — |
| SpectraAASIST3 | Wav2Vec2 + KAN-AASIST | ASVspoof19/21, ASVspoof5, In-the-Wild | — |
| Wav2Vec2 | Self-supervised transformer | ASVspoof2019 | — |
| HuBERT | Self-supervised transformer | In-The-Wild | — |
| WavLM | Self-supervised transformer | Mixed deepfake | — |
| RawNet2 | End-to-end CNN | ASVspoof 2021 | — |
| Classical | KNN classifier | ASVspoof2019 | — |
Simple rule of thumb:
- For the lowest error rate on In-the-Wild audio — use DFArena1B (EER 0.91%), or SpectraAASIST3 (EER 0.961%) for a quarter of the download and a permissive license
- For a quick, general-purpose result — use WavLM or HuBERT
- For a lightweight baseline with no deep learning — use Classical
- To sweep all models and compare — use
jj.load()once, calljj.detect()for each, andJabberjay.clear_cache()between models to keep memory down
How much audio each model sees
Models differ in how much of a clip they actually score. For a long recording, a fixed-window model only judges the opening seconds — trim or split the audio yourself if the part you care about comes later.
| Model | Audio scored |
|---|---|
| RawNet2, DFArena1B, Spectra0, SpectraAASIST, SpectraAASIST3 | The first ~4 s (64,600 samples at 16 kHz); shorter clips are looped to fill it |
| AST | The first ~10 s (1,024 spectrogram frames) |
| VIT | The whole clip, squeezed into a single spectrogram image |
| Wav2Vec2, HuBERT, WavLM, Classical | The whole clip |
Audio can be passed at any sample rate — each model resamples to the rate it was trained at (16 kHz, or 22.05 kHz for VIT and Classical).
VIT
Vision Transformer classifiers that convert the audio to a 2D image (spectrogram) and classify it visually.
Nine variants, covering three visualisation types × three training datasets:
| Visualisation | ASVspoof2019 | ASVspoof5 | VoxCelebSpoof |
|---|---|---|---|
| ConstantQ | ✓ | ✓ | ✓ |
| MelSpectrogram | ✓ | ✓ | ✓ |
| MFCC | ✓ | ✓ | ✓ |
jj.detect("audio.wav", model="VIT", dataset="VoxCelebSpoof", visualisation="ConstantQ")
jj.detect("audio.wav", model="VIT", dataset="ASVspoof2019", visualisation="MFCC")
jj.detect("audio.wav", model="VIT", dataset="ASVspoof5", visualisation="MelSpectrogram")
Visualisations:
ConstantQ— Constant-Q transform; good frequency resolution across the full spectrumMelSpectrogram— Mel-scaled spectrogram; perceptually motivated, widely used in speechMFCC— Mel-frequency cepstral coefficients; compact and speech-focused
AST
Audio Spectrogram Transformer. Applies a transformer directly to a patch-based spectrogram without a CNN backbone.
Available for ASVspoof2019, ASVspoof5, and VoxCelebSpoof datasets.
jj.detect("audio.wav", model="AST") # defaults to VoxCelebSpoof
jj.detect("audio.wav", model="AST", dataset="VoxCelebSpoof")
jj.detect("audio.wav", model="AST", dataset="ASVspoof2019")
Note
dataset is optional for AST and defaults to VoxCelebSpoof if not specified.
DFArena1B
Speech-Arena-2025/DF_Arena_1B_V_1
SSL encoder (Wav2Vec2-XLS-R-1B) → attention-pooled, sigmoid-gated fusion of every encoder layer → Conformer classifier with a class token. Released by the Speech DF Arena team (Kulkarni et al., 2026) and trained on the widest data mix in Jabberjay: ASVspoof 2019 and 2024, Codecfake, LibriSeVoc, DFADD, CTRSVDD, SpoofCeleb, MLAAD, and EnvSDD.
| Benchmark | EER (%) |
|---|---|
| ASVspoof19 LA | 1.14 |
| ASVspoof21 LA | 4.66 |
| ASVspoof21 DF | 1.75 |
| ASVspoof5 | 17.25 |
| ADD2022 Track 1 | 22.21 |
| In-the-Wild | 0.91 |
Non-commercial license
The DF Arena weights are released under a non-commercial license (research, teaching, and personal use only) — see the model's LICENSE. Jabberjay's own code remains MIT; commercial use of this model requires a separate license from Idiap.
Note
Downloads ~4.6 GB of weights on first run, by far the largest model in Jabberjay, and needs roughly 5 GB of memory to run. The checkpoint is loaded with weights_only=True; no remote code is executed.
Spectra0
lab260/spectra_0
SSL encoder (Wav2Vec2-XLS-R-300M) → MLP projection → ECAPA-TDNN binary classifier, trained across multiple anti-spoofing benchmarks.
| Benchmark | EER (%) |
|---|---|
| ASVspoof19 LA | 0.181 |
| ASVspoof21 LA | 6.475 |
| ASVspoof21 DF | 5.410 |
| ASVspoof5 | 14.426 |
| ADD2022 | 14.716 |
| In-the-Wild | 1.026 |
Note
On first run, Spectra0 downloads its weights (~1.3 GB, including its fine-tuned Wav2Vec2-XLS-R-300M encoder), cached by HuggingFace Hub after the first download.
SpectraAASIST
lab260/Spectra-AASIST
SSL encoder (Wav2Vec2-XLS-R-300M) → MLP projection → AASIST graph attention network with standard linear layers.
| Benchmark | EER (%) |
|---|---|
| ASVspoof19 LA | 0.159 |
| ASVspoof21 LA | 5.164 |
| ASVspoof21 DF | 2.568 |
| ASVspoof5 | 14.056 |
| ADD2022 | 15.205 |
| In-the-Wild | 1.461 |
Note
Downloads ~1.3 GB of weights on first run (including its fine-tuned Wav2Vec2-XLS-R-300M encoder), cached by HuggingFace Hub.
SpectraAASIST3
lab260/Spectra-AASIST3
SSL encoder (Wav2Vec2-XLS-R-300M) → MLP projection → AASIST graph attention network with KAN (Kolmogorov-Arnold Network) linear layers — the strongest model in the Spectra family on In-the-Wild audio.
| Benchmark | EER (%) |
|---|---|
| ASVspoof19 LA | 0.723 |
| ASVspoof21 LA | 4.506 |
| ASVspoof21 DF | 1.998 |
| ASVspoof5 | 13.820 |
| ADD2022 | 15.187 |
| In-the-Wild | 0.961 |
Note
Downloads ~1.3 GB of weights on first run (including its fine-tuned Wav2Vec2-XLS-R-300M encoder), cached by HuggingFace Hub.
Wav2Vec2
Gustking/wav2vec2-large-xlsr-deepfake-audio-classification
Wav2Vec2-XLSR-300M fine-tuned on ASVspoof2019. EER 4.01%.
HuBERT
abhishtagatya/hubert-base-960h-itw-deepfake
HuBERT-base fine-tuned on the In-The-Wild dataset. EER 1.43%.
WavLM
DavidCombei/wavLM-base-Deepfake_V2
WavLM-base fine-tuned on a mixed deepfake dataset (arXiv:2408.07414).
Note
The checkpoint ships without label names, so Jabberjay maps them itself: its class 0 is spoof and class 1 bonafide. Neither the model card nor the paper states this; it was established by scoring known-genuine and known-synthetic (TTS) speech. Jabberjay 0.1.3 and earlier had the two swapped.
RawNet2
End-to-end anti-spoofing network via rawnet2-antispoofing, with weights from ASVspoof 2021. Operates directly on raw waveforms — no feature extraction step.
Classical
Feature-based KNN classifier trained on ASVspoof2019. Extracts hand-crafted audio features (MFCCs, spectral features) and classifies with k-nearest neighbours. Fast and dependency-light compared to the transformer models.
Warning
Jabberjay 0.1.3 and earlier labelled every clip Bonafide with this model — the classifier's classes are named Genuine.wav/Synthetic.wav, and both strings were read as "true". Re-run any Classical results produced with those versions.