How dishagupta275/regional_deepfake_voice_detector works
This prototype builds and serves a four-class speech-manipulation detector. The main user workflow uploads audio, converts non-WAV files, extracts acoustic features, applies trained artifacts, and displays a label with confidence. Separate preparation and training paths create AI-generated or simulated voice-changer samples, extract dataset features, and fit the Random Forest model. The README also specifies genuine-speech and human-mimicry data. Source excerpts show the app and pipeline calls; the broader dataset guidance comes from the README.
Main entry points: app.py Streamlit Demo · extract_features.py Acoustic Features · generate_ai_speech.py AI Speech Samples · train_model.py Random Forest Training
Components 13
Interactive Detection
- Streamlit Demo
app.py - Class And Confidence
app.py
Audio Analysis
- WAV Converter
convert_to_wav.py - Acoustic Features
extract_features.py - Labeled Audio Data
Model Training
- Feature Dataset
extract_features.py - Random Forest Training
train_model.py - Model Artifacts
models/classifier.joblib
Sample Preparation
- Real Speech Samples
- Voice-Changer Samples
generate_voice_changer_samples.py - AI Speech Samples
generate_ai_speech.py
Other components
- Audio Uploader
- Indic Parler-TTS
Connections 14
- Audio Uploader → Streamlit Demo: uploads audio
app.py - Streamlit Demo → WAV Converter: converts formats
app.py - Streamlit Demo → Acoustic Features: extracts features
app.py - Acoustic Features → Streamlit Demo: returns features
app.py - Streamlit Demo → Model Artifacts: loads artifacts
app.py - Streamlit Demo → Class And Confidence: predicts and displays
app.py - Labeled Audio Data → Acoustic Features: provides labeled clips
README.md - Acoustic Features → Feature Dataset: writes feature rows
extract_features.py - Feature Dataset → Random Forest Training: trains from
train_model.py - Random Forest Training → Model Artifacts: saves model files
train_model.py - Real Speech Samples → Voice-Changer Samples: provides source clips
generate_voice_changer_samples.py - Voice-Changer Samples → Labeled Audio Data: creates altered samples
generate_voice_changer_samples.py - AI Speech Samples → Indic Parler-TTS: generates with
generate_ai_speech.py - AI Speech Samples → Labeled Audio Data: writes generated clips
generate_ai_speech.py