Music Genre Classification with Python

Music is like a mirror, and it tells people a lot about who you are and what you care about, whether you like it or not. We love to say “you are what you stream,” and that is so true.


Audio Processing With Python

  1. mp3 format
  2. WMA (Windows Media Audio) format
  3. wav (Waveform Audio File) format

Audio Libraries

1. Librosa


2. IPython.display.Audio

Loading an audio file

Playing Audio

Visualizing Audio



Writing Audio

Creating an audio signal

Feature extraction

Zero Crossing Rate

Spectral Rolloff

Case Study: Classify songs into different genres.



Preprocessing the Data


  • Feature Extraction
  • Classification

Next Steps



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Farzana Anjum

Farzana Anjum

Machine Learning | Computer Vision | Deep Learning | AI | Blogger