VoiceShield: Explainable Real-Time Deepfake Speech Detection for Indian Languages
Authors: Mrunal Mungelwar, Pranjali Deshmukh, Samiksha Kinkar, Tina Agrawal, Prof. Manisha Raut , Prof. Anirudh Bhagwat, Dr. Vijaya Choudhary, Prof. Vaishali Shende
Fraud, impersonation and misinformation are being increasingly leveraged using synthetic speech generated by state-of-the-art speech-to-text and voice conversion systems, but the majority of the detectors are designed for English corpora. This paper introduces an end-to-end VoiceShield system which classifies speech as real or fake for five Indian languages (Hindi, Marathi, Urdu, Kannada and Bengali) using a single multilingual classifier. Audio is standardized to 16 kHz mono, segmented in 4-s chunks with 2-s hop, and transformed to 128-band spectrograms on a log Mel scale, and classified using a compact, 0.39 million parameter convolutional neural network (CNN). By recording-level stratified splitting, leakage of segments does not occur, and by using the Gradient-weighted Class Activation Mapping (Grad-CAM), the time–frequency regions responsible for each decision can be highlighted. The trained network is exported to TorchScript and served using a FastAPI back end which has 2 modes: file upload with per-segment analysis, and WebSocket based real-time monitoring, and a React front end. The curated catalogue covers 10,448 recordings (6,751 real, 3,697 fake). The average time spent on model inference on a CPU is 4.03 ms (99th percentile 6.17 ms) with an interactive budget of 200 ms per 4-s segment. We also describe the evaluation protocol to train the whole corpus and talk about threats to validity, especially the source imbalance between real and fake classes.
Introduction
VoiceShield is an AI-powered voice deepfake detection system designed to identify fake, AI-generated, and manipulated speech. With advancements in Artificial Intelligence, modern voice cloning and text-to-speech technologies can generate highly realistic voices using only short voice samples. These technologies can be misused for financial fraud, identity impersonation, and creating fabricated audio evidence.
VoiceShield addresses this problem by detecting synthetic speech in five popular Indian languages: Hindi, Marathi, Urdu, Kannada, and Bengali. It uses a lightweight Convolutional Neural Network (CNN) to analyse audio signals and classify them as real or fake.
1. Literature Review
Previous research has explored different techniques for detecting fake voices:
ASVspoof 2019 and 2021: Introduced benchmark datasets for evaluating voice spoofing and deepfake detection.
Light-CNN: Detects synthetic speech using spectrogram features.
RawNet2: Analyses raw audio waveforms.
AASIST: Uses graph-attention networks to identify audio manipulation.
Wav2Vec 2.0: Uses self-supervised learning for speech representation and classification.
Grad-CAM: Provides visual explanations showing which audio regions influenced the model's prediction.
However, most existing research focuses on English speech and does not adequately address multilingual Indian speech, noisy mobile recordings, and real-time deployment.
2. Proposed Methodology
VoiceShield follows three major stages:
Data preparation.
AI model development and training.
Deployment and real-time inference.
A. Dataset Collection
Uses a dataset obtained from Hugging Face.
Contains real and AI-generated speech recordings.
Supports five Indian languages.
A total of 10,448 valid recordings are catalogued.
B. Audio Preprocessing
Converts audio into mono format.
Resamples audio to 16 kHz.
Normalizes audio signals.
Divides recordings into 4-second segments with a 2-second overlap.
C. Feature Extraction
The system uses Log-Mel Spectrograms to represent audio signals visually. These features help identify differences between natural and AI-generated speech.
Each audio segment is converted into a 128 × 126 feature matrix.
D. Dataset Splitting
The dataset is divided into:
70% for training.
15% for validation.
15% for testing.
Splitting is performed at the recording level to prevent overlapping segments from the same recording appearing in different datasets.
E. CNN Model Development
A lightweight four-block Convolutional Neural Network is developed to classify audio as real or fake.
Four convolutional blocks.
Batch normalization and ReLU activation.
Max pooling.
Global average pooling.
Final classification layer.
The model contains approximately 389,057 trainable parameters and occupies around 1.5 MB.
F. Model Training
Uses the Adam optimizer.
Uses Binary Cross-Entropy loss.
Implements a classification threshold of 0.5.
Saves the model with the best validation performance.
G. Performance Evaluation
The system evaluates detection performance using:
Accuracy
Precision
Recall
F1-score
ROC-AUC
Equal Error Rate (EER)
3. Explainability Using Grad-CAM
VoiceShield uses Grad-CAM to explain why an audio recording is classified as fake.
It generates a heatmap over the Log-Mel Spectrogram, highlighting the time-frequency regions that contributed to the fake-speech prediction.
This helps analysts understand the model's decision instead of relying only on a real/fake classification result.
Conclusion
VoiceShield is an end-to-end explainable deepfake speech detection system for five Indian languages, which we introduced. It integrates a leakage-aware data pipeline, a log-Mel CNN (0.39 M-parameter), explanations from Grad-CAM, and a service (FastAPI/React) that has an upload and live mode. The model executed on CPU takes 4.03ms on average for a 4-s segment (there is enough time for real-time use) and the data analysis and validation have set the groundwork to create a reproducible baseline for full-scale experiments with honest documentation
Future work will involve: (i) Training with the entire corpus and finalise Table IV; (ii) evaluate and test with external, test, and noise databases including noise, codec and room-impulse augmentation; (iii) benchmark with other detectors based on the wav2vec 2.0 model [7]; (iv) unify feature normalisation between training and serving for live mode; (v) measure end-to-end latency; and (vi) apply quantisation for edge deployment.
References
[1] J. Yamagishi et al., \"ASVspoof 2021: Accelerating progress in spoofed and deepfake speech detection,\" in Proc. ASVspoof 2021 Workshop, 2021.
[2] X. Wang et al., \"ASVspoof 2019: A large-scale public database of synthesized, converted and replayed speech,\" Comput. Speech Lang., vol. 64, Art. no. 101114, Nov. 2020.
[3] G. Lavrentyeva et al., \"STC antispoofing systems for the ASVspoof2019 challenge,\" in Proc. Interspeech, Graz, Austria, 2019, pp. 1033–1037.
[4] H. Tak et al., \"End-to-end anti-spoofing with RawNet2,\" in Proc. IEEE Int. Conf. Acoust., Speech Signal Process. (ICASSP), Toronto, ON, Canada, 2021, pp. 6369–6373.
[5] J.-w. Jung et al., \"AASIST: Audio anti-spoofing using integrated spectro-temporal graph attention networks,\" in Proc. IEEE ICASSP, Singapore, 2022, pp. 6367–6371.
[6] A. Baevski, H. Zhou, A. Mohamed, and M. Auli, \"wav2vec 2.0: A framework for self-supervised learning of speech representations,\" in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 33, 2020, pp. 12449–12460.
[7] H. Tak, M. Todisco, X. Wang, J.-w. Jung, J. Yamagishi, and N. Evans, \"Automatic speaker verification spoofing and deepfake detection using wav2vec 2.0 and data augmentation,\" in Proc. Odyssey Speaker Lang. Recognit. Workshop, Beijing, China, 2022, pp. 112–119.
[8] N. M. Müller, P. Czempin, F. Dieckmann, A. Froghyar, and K. Böttinger, \"Does audio deepfake detection generalize?\" in Proc. Interspeech, Incheon, South Korea, 2022, pp. 2783–2787.
[9] R. R. Selvaraju et al., \"Grad-CAM: Visual explanations from deep networks via gradient-based localization,\" in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), Venice, Italy, 2017, pp. 618–626.
[10] J. Adebayo et al., \"Sanity checks for saliency maps,\" in Proc. NeurIPS, vol. 31, 2018, pp. 9505–9515.
[11] samieecodes. (2026) VoiceShield-Dataset. Hugging Face Datasets Hub. [Online]. Available: https://huggingface.co/datasets/samieecodes/VoiceShield-Dataset
[12] B. McFee et al., \"librosa: Audio and music signal analysis in Python,\" in Proc. 14th Python Sci. Conf. (SciPy), Austin, TX, USA, 2015, pp. 18–25.
[13] S. S. Stevens, J. Volkmann, and E. B. Newman, \"A scale for the measurement of the psychological magnitude pitch,\" J. Acoust. Soc. Amer., vol. 8, no. 3, pp. 185–190, 1937.
[14] S. Davis and P. Mermelstein, \"Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences,\" IEEE Trans. Acoust., Speech, Signal Process., vol. ASSP-28, no. 4, pp. 357–366, Aug. 1980.
[15] S. Ioffe and C. Szegedy, \"Batch normalization: Accelerating deep network training by reducing internal covariate shift,\" in Proc. Int. Conf. Mach. Learn. (ICML), Lille, France, 2015, pp. 448–456.
[16] M. Lin, Q. Chen, and S. Yan, \"Network in network,\" arXiv:1312.4400, 2013.
[17] D. P. Kingma and J. Ba, \"Adam: A method for stochastic optimization,\" in Proc. Int. Conf. Learn. Represent. (ICLR), San Diego, CA, USA, 2015.
[18] A. Paszke et al., \"PyTorch: An imperative style, high-performance deep learning library,\" in Proc. NeurIPS, vol. 32, 2019, pp. 8024–8035.
[19] F. Pedregosa et al., \"Scikit-learn: Machine learning in Python,\" J. Mach. Learn. Res., vol. 12, pp. 2825–2830, 2011.
[20] S. Ramírez. FastAPI framework. [Online]. Available: https://fastapi.tiangolo.com
[21] M. Ravanelli et al., \"SpeechBrain: A general-purpose speech toolkit,\" arXiv:2106.04624, 2021.
[22] B. Desplanques, J. Thienpondt, and K. Demuynck, \"ECAPA-TDNN: Emphasized channel attention, propagation and aggregation in TDNN based speaker verification,\" in Proc. Interspeech, Shanghai, China, 2020, pp. 3830–3834.
[23] J. Valk and T. Alumäe, \"VoxLingua107: A dataset for spoken language recognition,\" in Proc. IEEE Spoken Lang. Technol. Workshop (SLT), 2021, pp. 652–658.
[24] I. Fette and A. Melnikov, \"The WebSocket protocol,\" IETF, RFC 6455, Dec. 2011.