Skip to content

Music genre classification from audio spectrograms using deep learning

License

Notifications You must be signed in to change notification settings

cetinsamet/music-genre-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

music-genre-classification

Music genre classification from audio spectrograms using deep learning A convolutional neural network is trained with 7000 sample audios of 10 different music genres.

GENRES: blues - classical - country - disco - hiphop - jazz - metal - pop - reggae - rock

DATA: GTZAN Genre Collection

Usage

$python3 get_genre.py input-audio-path

Example

$cd src
$python3 get_genre.py ../test.mp3
--> disco: 62.50%
--> rock: 35.42%
--> reggae: 2.08 %

Test audio (test.mp3) is a disco song, Every 1's A Winner by Hot Chocolate. (https://open.spotify.com/track/5MXXbGYNmRHR7ULMvZYo5R?si=yk6GzvJiS--7hZuGd8awog)