Skip to Main Content
Python Artificial Intelligence Projects for Beginners
book

Python Artificial Intelligence Projects for Beginners

by Dr. Joshua Eckroth
July 2018
Beginner content levelBeginner
162 pages
3h 25m
English
Packt Publishing
Content preview from Python Artificial Intelligence Projects for Beginners

Identifying the genre of a song with neural networks

In this section, we're going to build a neural network that can identify the genre of a song. We will use the GTZAN Genre Collection (http://marsyasweb.appspot.com/download/data_sets/.GTZAN Genre Collection). It has 1,000 different songs from over 10 different genres. There are 100 songs per genre and each song is about 30 seconds long.

We will use the  Python library, librosa to extract features from the songs. We will use Mel-frequency cepstral coefficients (MFCC). MFCC values mimic human hearing and they are commonly used in speech recognition applications as well as music genre detection. These MFCC values will be fed directly into the neural network.

To help us understand the MFCC, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Artificial Intelligence with Python

Artificial Intelligence with Python

Prateek Joshi

Publisher Resources

ISBN: 9781789539462Supplemental Content