Thank you very much for you fantastic work. I am very novice at python so I got stuck in an error where ChatGPT find the bug at once :) I was replace line :
ms = librosa.feature.melspectrogram(y, sr=sr)
with
ms = librosa.feature.melspectrogram(y=y, sr=sr)
And I got out the spectrogram :) it seems to work