Can librosa play audio?
display. Audio can also work directly with filenames and URLs. If you're working with long signals, or do not want to load the signal into python directly, it may be better to use one of these modes. Audio playback, by default, will normalize the amplitude of the signal being played.
Does librosa work with MP3?
Librosa does not handle audio coding directly. It relies on the audioread package to interface between different decoding libraries (pymad, gstreamer, ffmpeg, etc). The exception that you're getting is coming from audioread because it can't find a back-end to handle mp3 encoding.
How to play WAV in Python?
python-sounddevice
In order to play WAV files, numpy and soundfile need to be installed, to open WAV files as NumPy arrays. The line containing sf. read() extracts the raw audio data, as well as the sampling rate of the file as stored in its RIFF header, and sounddevice.