torchaudio: Error opening '_sample_data\\steam.mp3': File contains data in an unknown format
I'm new to torch audio and i'm following the this tutorial step by step. I'm having a problem loading an mp3 audio using torchaudio.info(path).
Here is my code:
metadata = torchaudio.info(SAMPLE_MP3_PATH)
print(metadata)

Here is the error that i'm getting:
..

RuntimeError: Error opening '_sample_data\\steam.mp3': File contains data in an unknown format.


torch: v1.9.1+cpu
torchaudio: v0.9.1


torchaudio.info will call its backend to show the information.
If you use it in windows, and the backend is Soundfile, then this problem will occur. Because Soundfile does not support mp3 format.
You can use the below code to see the available formats.
import soundfile as sf
sf.available_formats()

