on-internet
← Community

Does the Hugging Face audio classifier modify an audio sample before classifying it?

Stack Overflow ·

I'm using Hugging Face Transformers to classify speech recordings as REAL or FAKE with the model MelodyMachine/Deepfake-audio-detection-V2. I noticed a significant difference between predictions on an entire recording and predictions on short segments extracted from the same recording. Environment Python 3.12 PyTorch 2.15 Transformers 5.23 Ubuntu 24.04 ARM64 (CPU) Audio: mono PCM WAV, 16 kHz Minimal example import numpy as np import soundfile as sf from transformers import pipeline model_id = "MelodyMachine/Deepfake-audio-detection-V2" classifier = pipeline( task="audio-classification", model=

Comments

Sign in or sign up to comment and upvote.

No comments yet.