zlin0/wedefense

WeDefense: A Toolkit to Defend Against Fake Audio

Python

36

282 commits

updated Feb 20, 2026

See the code

README

WeDefense: A Toolkit to Defend Against Fake Audio

WeDefense Logo

| 📘 Tutorials | 📚 Documentation | 🤝 Contributing | 🤗 Demos |

⚠️ Warning / Disclaimer⚠️

Although the goal of this toolkit is to promote progress in fake detection, we acknowledge that any open-source software may be misused by malicious actors. We strongly discourage any use of the models or code for harmful purposes, such as:

  • Bypassing biometric authentication
  • Creating or enhancing systems that generate fake or deceptive audio

Some of the models included here perform well on public datasets, but may not generalize to unseen or adversarial scenarios. Please be aware of these limitations and use this repository responsibly and ethically.

🛡️ What WeDefense Offers

WeDefense aims to be a relatively light-weight, modular, and extensible toolkit tailored to defend against fake audio. Currently we supported detection and uniform frame-level segmentation. If you are interested to contribute, please feel free to contact us!

CategorySupported ✅Planned ⏳
Fully Spoof DatabasesASVspoof2019, ASVspoof 5 (2024), , ESDD2026, SpoofCelebASVspoof2021, ADD22/23, ITW, ODSS, ShiftySpeech, MLAAD, ReplayDF, DeePen, FoR, DFADD, AI4T, Deepfake-Eval-2024, SpeechFake, AV-Deepfake1M/++, HAD, Psynd, LAV-DF, LlamaPartialSpoof, PartialEdit
Partial Spoof DatabasesPartialSpoofAV-Deepfake1M/AV-Deepfake1M++, HAD, Psynd, LAV-DF, LlamaPartialSpoof, PartialEdit
Augmentationspeed perturb, codec, raw boost, musan+rirs
Models for DetectionLCNN-LSTM, ResNet, SSL-gmlp, SSL-AASIST, SSL_MHFA, SSL-res1d, SSL-SLS, AASISTALLM4ADD
Models for LocalizationSSL-MHFA, SSL-SLS, SSL-BAMCFPRF, PET, AGO, GNCL, UMMAformer, W-TDL, BA-TFD(+), VIGO

More details please refer to support_status.md.

🌱 Environment

bash ./install_env.sh
conda activate wedefense

📝 How to use

🔥 News

  • 2026.01.20: change the visibility to public
  • 2025.06.04: submitted to ASRU

🚀 Vision and Contribution

WeDefense aims to support tasks beyond detecting fake audio but also support other relevant tasks to protect the audio.

WeDefense Vision

📝 Citations

If you find WeDefense useful, please cite it as:

@article{zhang2025wedefense,
  title={WeDefense: A Toolkit to Defend Against Fake Audio},
  author={Lin Zhang, Johan Rohdin, Xin Wang, Junyi Peng, Tianchi Liu, You Zhang, Hieu-Thi Luong, Shuai Wang, Chengdong Liang, Anna Silnova, Nicholas Evans},
  journal={arXiv preprint arXiv:2601.15240},
  year={2025}
}
anti-spoofing
asvspoof5
audio
audio-deepfake-detection
deepfake
deepfake-detection
fake-audio-detection
opensource
partialspoof
speech-deepfake-detection
toolkit
wedefense

zlin0/wedefense

WeDefense: A Toolkit to Defend Against Fake Audio

Python

36

282 commits

updated Feb 20, 2026

See the code

README

WeDefense: A Toolkit to Defend Against Fake Audio

WeDefense Logo

| 📘 Tutorials | 📚 Documentation | 🤝 Contributing | 🤗 Demos |

⚠️ Warning / Disclaimer⚠️

Although the goal of this toolkit is to promote progress in fake detection, we acknowledge that any open-source software may be misused by malicious actors. We strongly discourage any use of the models or code for harmful purposes, such as:

  • Bypassing biometric authentication
  • Creating or enhancing systems that generate fake or deceptive audio

Some of the models included here perform well on public datasets, but may not generalize to unseen or adversarial scenarios. Please be aware of these limitations and use this repository responsibly and ethically.

🛡️ What WeDefense Offers

WeDefense aims to be a relatively light-weight, modular, and extensible toolkit tailored to defend against fake audio. Currently we supported detection and uniform frame-level segmentation. If you are interested to contribute, please feel free to contact us!

CategorySupported ✅Planned ⏳
Fully Spoof DatabasesASVspoof2019, ASVspoof 5 (2024), , ESDD2026, SpoofCelebASVspoof2021, ADD22/23, ITW, ODSS, ShiftySpeech, MLAAD, ReplayDF, DeePen, FoR, DFADD, AI4T, Deepfake-Eval-2024, SpeechFake, AV-Deepfake1M/++, HAD, Psynd, LAV-DF, LlamaPartialSpoof, PartialEdit
Partial Spoof DatabasesPartialSpoofAV-Deepfake1M/AV-Deepfake1M++, HAD, Psynd, LAV-DF, LlamaPartialSpoof, PartialEdit
Augmentationspeed perturb, codec, raw boost, musan+rirs
Models for DetectionLCNN-LSTM, ResNet, SSL-gmlp, SSL-AASIST, SSL_MHFA, SSL-res1d, SSL-SLS, AASISTALLM4ADD
Models for LocalizationSSL-MHFA, SSL-SLS, SSL-BAMCFPRF, PET, AGO, GNCL, UMMAformer, W-TDL, BA-TFD(+), VIGO

More details please refer to support_status.md.

🌱 Environment

bash ./install_env.sh
conda activate wedefense

📝 How to use

🔥 News

  • 2026.01.20: change the visibility to public
  • 2025.06.04: submitted to ASRU

🚀 Vision and Contribution

WeDefense aims to support tasks beyond detecting fake audio but also support other relevant tasks to protect the audio.

WeDefense Vision

📝 Citations

If you find WeDefense useful, please cite it as:

@article{zhang2025wedefense,
  title={WeDefense: A Toolkit to Defend Against Fake Audio},
  author={Lin Zhang, Johan Rohdin, Xin Wang, Junyi Peng, Tianchi Liu, You Zhang, Hieu-Thi Luong, Shuai Wang, Chengdong Liang, Anna Silnova, Nicholas Evans},
  journal={arXiv preprint arXiv:2601.15240},
  year={2025}
}
anti-spoofing
asvspoof5
audio
audio-deepfake-detection
deepfake
deepfake-detection
fake-audio-detection
opensource
partialspoof
speech-deepfake-detection
toolkit
wedefense