Code Monkey home page Code Monkey logo

music-genre-recognition's Introduction

Music Genre Recognition

This project was built to recognize an audio file's musical style with machine learning algorithms. It was trained on the GTZAN Dataset that contains an equal number of 30 seconds tracks for a few predetermined musical styles.

We used logistic regression, K-nearest neighbors, Random forest and Kernel SVM algorithms and Flask/Heroku to deploy the project.

Test it online !

It is accessible online: https://the-mgr-project.herokuapp.com. For best results, only use 30 seconds .wav audio files.

Run it locally

  1. Download the repository
  2. Open the terminal and navigate to the flask directory: $ cd users/yourusername/flask
  3. optional but recommended: activate a virtual environement
  4. Run $ pip install -r requirements to install dependencies
  5. Run $ flask run and follow the link to open Music Genre Recognition in your brower

Further develpments

While we not actively working on this project anymore, we thought about a few more things to do that would improve it:

  • Restrict file input to .wav files only. Allowing other file types such as .pdf and .csv is confusing
  • Add support for .mp3 audio files, which are also common
  • Add audio visualization of the chosen file

Music Genre Regonition is developed by Jason Ola, Andrei Anikin and Melinda Femminis during the semester of spring 2021 for the course "Développement logiciel" given by Davide Picca at the University of Lausanne.

music-genre-recognition's People

Contributors

melindafemminis avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.