joao_marques:

Can I create a spectogram from mp3?


Yes. With the librosa library for audio and music processing in Python, you can:

Use the librosa.feature submodule for (mel) spectrograms → librosa.feature.melspectrogram: librosa.feature.melspectrogram — librosa 0.8.1 documentation

Display a spectrogram with librosa.display.specshow: librosa.display.specshow — librosa 0.8.1 documentation


To learn about short-time Fourier transforms/spectrograms with NumPy, SciPy, matplotlib, and librosa, this Music Information Retrieval (MIR): STFT notebook may be useful: stft. There are more MIR notebooks here: https://musicinformationretrieval.com/.