(Audio classification pipeline) ValueError: ffmpeg was not found but is required to load audio files from filename

Greetings Huggingface community!

I have been following the examples in the docs, for the example of audio pipeline under the ‘Pipelines for inference’ tutorial, I tried out the follwing example:

from transformers import pipeline
audio_classifier = pipeline(task='audio-classification',model = \
                            "ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition")
audio_classifier("1.wav")  # A .wav file stored locally in the same directory

I get the following error

ValueError: ffmpeg was not found but is required to load audio files from filename

I’m running all of this under a conda environment and made sure that ffmpeg was installed.

Any assistance would be greatly appreciated

I have the same issue, any update on that?

For anyone encountering this issue, I found a solution. Apparently python ffmpeg-python package doesn’t install ffmpeg itself so you have to install it manually on your machine Download FFmpeg