A lightweight, high-performance FastAPI service for detecting AI-generated, synthetic, and deepfake audio with state-of-the-art deep learning models.
Designed for real-time fraud detection, voice authentication, and security research use cases.
The system combines a self-supervised speech representation model with a graph-attention anti-spoofing classifier.
A carefully designed signal processing chain improves robustness:
This removes environmental artifacts and focuses the model on human vocal characteristics.
The system performs inference twice:
Final score = average of both predictions
Prevents overfitting to digital silence
Improves robustness against adversarial audio
git clone https://github.com/yourusername/ai-voice-detector-api.git
cd ai-voice-detector-api
pip install -r requirements.txt
Linux / Mac:
export API_KEY=your_secret_key
Windows (PowerShell):
setx API_KEY "your_secret_key"
python main.py
Server will start at:
http://0.0.0.0:7860
POST /api/voice-detection
x-api-key: <API_KEY>
Content-Type: application/json
{
"audioBase64": "<base64_encoded_audio>"
}
Supported formats:
.wav.mp3{
"status": "success",
"classification": "AI_GENERATED",
"confidenceScore": 0.9842
}
Classification values:
HUMANAI_GENERATED├── main.py
├── model/
├── utils/
├── requirements.txt
└── README.md
This project builds upon the work of leading research organizations:
Meta AI --- for the MMS-300M (Wav2Vec2) speech
representation model
https://ai.meta.com/
Clova AI Research (Naver) --- for the AASIST architecture
https://clova.ai/
If you use this project in research, please consider citing their work.
This tool is intended for research and security purposes only.
Detection accuracy may vary depending on:
Always combine with additional verification methods for critical applications.
Pull requests are welcome!
For major changes, please open an issue first to discuss what you would like to change.
MIT License
Developed with care for AI Security & Fraud Prevention.
13 commits
Jupyter Notebook
97.3%
Python
2.5%
A lightweight, high-performance FastAPI service for detecting AI-generated, synthetic, and deepfake audio with state-of-the-art deep learning models.
Designed for real-time fraud detection, voice authentication, and security research use cases.
The system combines a self-supervised speech representation model with a graph-attention anti-spoofing classifier.
A carefully designed signal processing chain improves robustness:
This removes environmental artifacts and focuses the model on human vocal characteristics.
The system performs inference twice:
Final score = average of both predictions
Prevents overfitting to digital silence
Improves robustness against adversarial audio
git clone https://github.com/yourusername/ai-voice-detector-api.git
cd ai-voice-detector-api
pip install -r requirements.txt
Linux / Mac:
export API_KEY=your_secret_key
Windows (PowerShell):
setx API_KEY "your_secret_key"
python main.py
Server will start at:
http://0.0.0.0:7860
POST /api/voice-detection
x-api-key: <API_KEY>
Content-Type: application/json
{
"audioBase64": "<base64_encoded_audio>"
}
Supported formats:
.wav.mp3{
"status": "success",
"classification": "AI_GENERATED",
"confidenceScore": 0.9842
}
Classification values:
HUMANAI_GENERATED├── main.py
├── model/
├── utils/
├── requirements.txt
└── README.md
This project builds upon the work of leading research organizations:
Meta AI --- for the MMS-300M (Wav2Vec2) speech
representation model
https://ai.meta.com/
Clova AI Research (Naver) --- for the AASIST architecture
https://clova.ai/
If you use this project in research, please consider citing their work.
This tool is intended for research and security purposes only.
Detection accuracy may vary depending on:
Always combine with additional verification methods for critical applications.
Pull requests are welcome!
For major changes, please open an issue first to discuss what you would like to change.
MIT License
Developed with care for AI Security & Fraud Prevention.
13 commits
Jupyter Notebook
97.3%
Python
2.5%