How tawassulgoharellahi/deepfense-audio-detector works
DeepFense Audio Detector is a web service for detecting spoofed or AI-generated speech. Clients authenticate through Google OAuth for the dashboard; the REST endpoint also supports session-or-IP identity. The request path checks and consumes daily quota, preprocesses audio, runs chunked WavLM/Nes2Net inference, and returns segment and overall results through JSON or the Gradio dashboard. The README documents the dashboard, API, access controls, preprocessing, and model behavior; the excerpts show key calls in app.py and detector.py, but utils.py was not sampled.
Main entry points: app.py Gradio dashboard · detector.py Chunked detector · quota_manager.py Daily quota manager · utils.py Audio preprocessing
Components 13
Access and interfaces
- Session and OAuth
app.py - Gradio dashboard
app.py - Detection API
app.py
Quota management
- Daily quota manager
quota_manager.py - SQLite quota store
quota_manager.py
Audio analysis
- Audio preprocessing
utils.py - Predictions and report
app.py
Inference
- Chunked detector
detector.py - Model configuration
models/ASV19_WavLM_Nes2Net_NoAug_Seed42/config.yaml
Other components
- Browser user
- API client
- Google OAuth
- DeepFense model runtime
Connections 15
- Browser user → Session and OAuth: requests access
README.md - API client → Detection API: submits audio
README.md - Session and OAuth → Google OAuth: redirects for login
app.py - Session and OAuth → Gradio dashboard: protects access
README.md - Detection API → Daily quota manager: consumes quota
app.py - Gradio dashboard → Daily quota manager: checks and consumes
app.py - Daily quota manager → SQLite quota store: reads and writes
quota_manager.py - Detection API → Audio preprocessing: preprocesses audio
app.py - Gradio dashboard → Audio preprocessing: preprocesses audio
app.py - Detection API → Chunked detector: runs inference
app.py - Gradio dashboard → Chunked detector: runs inference
app.py - Chunked detector → Model configuration: loads configuration
detector.py - Chunked detector → DeepFense model runtime: calls model
detector.py - Detection API → Predictions and report: returns JSON
app.py - Gradio dashboard → Predictions and report: renders report
app.py