ai4bharat/Kathbath
Viewer • Updated • 806k • 3.2k • 24
How to use Shanmugapriya6/voice-fake-detector-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="Shanmugapriya6/voice-fake-detector-v1") # Load model directly
from transformers import AutoProcessor, AutoModelForAudioClassification
processor = AutoProcessor.from_pretrained("Shanmugapriya6/voice-fake-detector-v1")
model = AutoModelForAudioClassification.from_pretrained("Shanmugapriya6/voice-fake-detector-v1", device_map="auto")This model detects whether an audio clip is real human speech or AI-generated (deepfake). It is based on a fine-tuned Wav2Vec2 architecture and designed for robust audio deepfake detection.
The model performs binary classification:
It is suitable for deepfake detection, voice verification, and media authenticity applications.
.wav audiofrom transformers import pipeline
classifier = pipeline("audio-classification", model="Shanmugapriya6/voice-fake-detector-v1")
result = classifier("audio.wav")
print(result)
Input: audio.wav Output: Fake (confidence: 0.91)
The model was trained on a combination of real and synthetic speech data.
Evaluation results on ASVspoof2019 subset:
Note: Performance may vary depending on dataset and audio conditions.
MIT
Base model
facebook/wav2vec2-xls-r-300m