Git Product home page Git Product logo

abracadabra's Introduction

abracadabra: Sound recognition in Python

abracadabra ร  la Shazam

abracadabra is sound recogniser written in Python. It is an implementation of the Shazam paper: An Industrial Strength Audio Search Algorithm.

Read the docs here or read an explanation of how it works.

What can you use it for?

abracadabra works like Shazam. You register songs in advance and then later you can use your computer's microphone to identify what song is playing. It could be used (as part of another system) to:

  • Align multiple videos of the same event using the audio
  • De-duplicate your music library

Installation

First, clone or download this repository:

git clone https://github.com/notexactlyawe/abracadabra.git

Next, install the dependencies abracadabra relies on. On Ubuntu you can install them with the following line:

sudo apt-get install gcc portaudio19-dev python3-dev ffmpeg

Now you can use pip to install the project:

cd abracadabra
pip install .

Usage as a script

Installing the project through pip will install the song_recogniser script. To see all the options you can pass to the script, run the following:

song_recogniser --help

Below is an example of how you can use song_recogniser:

$ song_recogniser initialise
Initialised DB
$ song_recogniser register ~/Music/CoolArtist/AwesomeAlbum
$ song_recogniser recognise --listen  # records a 10 second clip for recognition
ALSA ...
* recording
* done recording
('CoolArtist', 'AwesomeAlbum', 'SweetTrack')

Usage as a library

You can use abracadabra as part of your own project by using it as a library. The main modules you'll be interested in are the recognise and settings modules.

Most functions in the library are documented. If you want to use lower-level components in your project, please take a look at the docs.

Issues and contributing

If you encounter an issue with abracadabra or have a suggestion for improving the project, please create an issue!

Pull requests are welcome, but please create an issue first to discuss what you intend to do.


This project is maintained by Cameron MacLeod.


abracadabra's People

Contributors

notexactlyawe avatar dependabot[bot] 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.