Hi,
Please accept my emotional email, but it seems I am doing something wrong with librosa that I am fall every step I tried to use it. I wish to use librosa in my research for voice recognition, nothing fancy spectrogram, mfcc, etc.
I took fresh windows 11 installation, fresh Python 3.13 with IDLE, installed fresh librosa via pip with all dependiences. Simple program like from examples:
import librosa
y,sr = librosa.load('test.mp3')
Fail #1
Soxr which is underhood of librosa fails to load its library soxr_ext. It took me while to troubleshoot this, I found a problem between soxr 0.5.0.post1 and 0.5.0, something in release notes about not finding libraries properly. But actually it was 0.5.0.post1 in my system, after downgrading to 0.5.0 first line of code did not fail. I know development of soxr is not made by librosa dev team, but it is strange that nobody noticed that?
Fail #2
Librosa.load failed just because 'aifc' is removed Python 3.13 but it is oficially deprecated since 3.11. Nobody has ever had this problem? I do not feel competent enought how to fix this, I just downgraded to Python 3.12, problem is gone. I am pretty sure I wiped all Python 3.13 artifacts from system so I had to install librosa from scratch but accidently Fail #1 is also gone. Python 3.13 was released in November 2024, and since that time nobody has such issues?
Fail #3
Librosa.load hanged during loading file. At the begining I assumed it may takes a while to precompile something as it is clean installation, but after 5 minutes I gave up. There are many discussion threads in internet saying sometimes load in librosa is slow because "something else" is missing and "some slow legacy" mechanism is used. So I converted my sample from mp3 to uncompressed wav, the format which requires just copying bytes from file to memory. Loading wav also tooks surprising long, actually I do not know if it success or I just silently kill process without waiting for return prompt. I tried to measure how long it takes to load wav file, with time module, then I realize it actually never ends! I pressed Ctrl-C and then I got interesting stack dump, there was exception during load and then while exception there was another exception which somehow deadlocked the python engine.
Please tell me if I am doing something wrong with librosa, I really wish to use it in my work.