Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 1.45 KB

README.md

File metadata and controls

13 lines (6 loc) · 1.45 KB

Audio Classification Using Mel Spectrograms

The files in this repo provide a basic introduction to classification of audio data using Mel spectrograms to train a Convolutional Neural Network (CNN). Data for this project were acquired from the UrbanSound8K dataset. Code for this project is included in the notebook file. It is also split into individual scripts for generation of example spectrograms, file processing, and model training. Prior to running the notebook or scripts, you will need to download the UrbanSound8K dataset and save the downloaded directory in your project folder. The dataset can be found at the link above. Alternatively, you can download it from Kaggle.

It is highly recommended that the notebook and/or scripts be run using a GPU for model training. Please note that the notebook generates a numpy array for each audio file representing its Mel spectrogram and saves the array as an NPZ file for processing later. These files, along with the raw audio files from UrbanSound8K, are not included in this repo to conserve space.

I also wrote a Medium article outlining the process used to complete this project:

Urban Environmental Audio Classification Using Mel Spectrograms

Please give it some claps if you find it helpful!