Fingerprint audio files & identify what's playing
- conference PaceMaker: BackEnd-2016 conference
- slides are on slideshare.net/rodomansky/ok-shazam-la-lalalaa
How to set up
- Run
$ make clean reset
to clean & init database struct - Run
$ make tests
to make sure that everything is properly configurated - Copy some
.mp3
audio files intomp3/
directory - Run
$ make fingerprint-songs
to analyze audio files & fill your db with hashes - Start play any of audio file (from any source) from
mp3/
directory, and run (parallely)$ make recognize-listen seconds=5
How to
-
To remove a specific song & related hash from db
$ python sql-execute.py -q "DELETE FROM songs WHERE id = 6;" $ python sql-execute.py -q "DELETE FROM fingerprints WHERE song_fk = 6;"