Why it is saying win_length is not defined in librosa.feature.melspectrogram?

Hi there
I am using google colab , while executing code in local machine m getting no error , but running training.py file in colab , m getting this error.

1534 mel_basis = filters.mel(sr, n_fft, **kwargs)

1535
1536 return np.dot(mel_basis, S)

TypeError: mel() got an unexpected keyword argument ‘win_length’

but in doc of this librosa feature, I find this win_length variable. plz guide

I guess the used librosa versions might differ and you might need to update/downgrade the Colab version if your local code is working fine.

1 Like