How mohammedirshads730-mi/voice-clone-detection works
Voice Clone Detection is a prototype web service that accepts audio and returns a REAL/CLONED estimate with confidence, risk score, and audio metadata. The main path runs from the user through the frontend and API, then audio preprocessing, acoustic feature extraction, classification, and result assembly. Separate training and evaluation scripts build and assess the classifier. Source excerpts support the inference and model-building relationships; the README documents the frontend-facing workflow, while frontend implementation details were not sampled.
Main entry points: api_server.py Upload API · audio_utils.py Audio preprocessing · deepfake_detector.py Voice classifier · train.py Model training
Components 12
Web interface
- Web frontend
frontend/index.html - Upload API
app/api_server.py
Detection runtime
- Audio preprocessing
app/audio_utils.py - Acoustic features
app/deepfake_detector.py - Voice classifier
app/deepfake_detector.py - Prediction and metadata
app/api_server.py
Model lifecycle
- Trained model
models/detector.pkl - Model training
scripts/train.py - Model evaluation
scripts/evaluate.py
Runtime settings
- Detection settings
app/config.py
Other components
- Audio submitter
- Labeled audio data
Connections 18
- Audio submitter → Web frontend: submits audio
README.md - Web frontend → Upload API: sends for analysis
README.md - Upload API → Web frontend: serves interface
app/api_server.py - Upload API → Voice classifier: requests prediction
app/api_server.py - Upload API → Audio preprocessing: gets audio quality
app/api_server.py - Upload API → Prediction and metadata: assembles response
app/api_server.py - Voice classifier → Audio preprocessing: loads audio
app/deepfake_detector.py - Voice classifier → Acoustic features: extracts features
app/deepfake_detector.py - Voice classifier → Trained model: loads model
app/deepfake_detector.py - Audio preprocessing → Detection settings: uses audio limits
app/audio_utils.py - Acoustic features → Detection settings: uses feature settings
app/deepfake_detector.py - Labeled audio data → Model training: provides labeled samples
scripts/train.py - Model training → Audio preprocessing: loads training audio
scripts/train.py - Model training → Acoustic features: extracts training features
scripts/train.py - Model training → Trained model: saves classifier
scripts/train.py - Model evaluation → Audio preprocessing: loads evaluation audio
scripts/evaluate.py - Model evaluation → Acoustic features: extracts evaluation features
scripts/evaluate.py - Model evaluation → Trained model: loads classifier
scripts/evaluate.py