Views
No views yet
clean: The audio contains speech with no significant environmental noise. This includes high-quality recordings as well as recordings with source artifacts like hiss, clipping, or "bad microphone" quality.noisy: The audio contains speech that is obscured by external, environmental background noise.clean.pipeline.pip install transformers torch1from transformers import pipeline
2
3classifier = pipeline("audio-classification", model="Etherll/NoisySpeechDetection-v0.2")
4
5# Classify a local audio file (must be a WAV or other supported format)
6# The pipeline automatically handles resampling to 16kHz.
7results = classifier("path/to/your_audio_file.wav")
8
9# The result is a list of dictionaries
10# [{'score': 0.9979726672172546, 'label': 'clean'},
11# {'score': 0.002027299487963319, 'label': 'noisy'}]
12print(results)Note: The model outputs a confidence score for each label. In my use case, I consider audio to be clean if the score for thecleanlabel is greater than 0.7.