Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

I keep getting the error that resampy is not found, how can I fix this?

$
0
0
path = "./kaggle/input/RAVDESS/Actor_08/03-01-05-02-01-01-08.wav"X, sample_rate = librosa.load(    path, res_type='kaiser_fast', duration=2.5, sr=22050*2, offset=0.5)mfcc = librosa.feature.mfcc(y=X, sr=sample_rate, n_mfcc=13)# audio waveplt.figure(figsize=(20, 15))plt.subplot(3, 1, 1)librosa.display.waveplot(X, sr=sample_rate)plt.title('Audio sampled at 44100 hrz')# MFCCplt.figure(figsize=(20, 15))plt.subplot(3, 1, 1)librosa.display.specshow(mfcc, x_axis='time')plt.ylabel('MFCC')plt.colorbar()ipd.Audio(path)

I try to plot this audio wave but on the librosa.load line I keep getting the ModuleNotFoundError. Does anyone know how to fix this?ERROR:error message

It's not the first time I get errors with the librosa package, when i want to waveplot I get an error that my matplotlib doesn't work. Here I tried to uninstall and install matplotlib and librosa but this didn't work, I changed the code to only using matplotlib. Is it possible that librosa is not in a stable version at the moment?

I tried to install and uninstall resampy and restarted my kernel several times.


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>