AbhayJaiswal/audio-forensics-detector
0
๐ Audio Forensics Module โ Real-Time Voice Clone Detection
A real-time audio forensics module that detects AI-cloned voices during live calls within the first 10 seconds โ before fraud can occur.
๐ฏ What It Does
- Streams incoming audio through a forensic analysis pipeline
- Converts chunks into Mel spectrograms for visual analysis
- Runs them through a fine-tuned CNN-Transformer hybrid model (WavLM)
- Detects synthetic artifacts: unnatural pitch consistency, GAN-generated frequency smoothness, missing micro-tremors
- Outputs a live Risk Score (0-100) with color-coded verdict
- Shows a highlighted spectrogram heatmap showing exactly which frequencies triggered the alert
- Delivers an instant HIGH RISK flag within 10 seconds
๐ง Architecture
Raw Audio โ [CNN Feature Extractor (7 layers)] โ [Transformer Encoder (12 layers)] โ [Classification Head] โ Risk Score
โ โ
Low-level acoustic features Temporal patterns & synthetic artifactsModel: WavLM-Base-Plus (94M parameters)
- Pre-trained on 94,000 hours of speech data
- Fine-tuned on multi-corpus deepfake dataset (ASVspoof + FakeOrReal + InTheWild)
- 99.62% accuracy on held-out test set
๐ฌ Detection Targets
๐ How to Use
- Upload a WAV/MP3/FLAC audio file, or record from your microphone
- Click Analyze Audio
- View the Risk Score (0-100), spectrogram heatmap, and verdict
For real-time analysis, use the Streaming tab to analyze live microphone input.
๐๏ธ Technical Details
- Sliding Window: 4-second chunks with 2-second stride โ first result at 4 seconds, updated every 2 seconds
- Calibration: Temperature-scaled softmax (T=1.8) prevents overconfident predictions
- Input: 16kHz mono audio, any duration (minimum 0.5 seconds)
- Inference: ~50ms per chunk on GPU
๐ References
๐ Built for Hackathon
Problem Statement PS2: Audio Forensics for Voice Security Real-world impact: Protects banks, insurance firms, and telecom providers from voice cloning fraud.
