Skip to content

Lib that takes the PCM data of audio and create ginerprints corresponding to it.

License

Notifications You must be signed in to change notification settings

soundhive/cpp-fingerprint-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp_fingerprint_generator

Library that simplify creation of fingerprints from an audio file.

Give a mp3 or wav file as input, get fingerprints as hash and offset pairs as output in a txt file.

This piece of software relies on my own wav file decoder to read wav files, minimp3 to read mp3 files, and the CPP port of DejaVu to generate the hashes.

When you run it, it will create a TEMP directory in which it will dump the PCM files it requires to then generate the fingerprints (I intend to mmake this lib able to run without having to dump a file).

As an output, you will get at the specified output directory a text file containing the prints.

Compile

git clone --recurse-submodules https://github.com/soundhive/cpp-fingerprint-generator/tree/master
cd cpp-fingerprint-generator
mkdir build
cd build
cmake ..
cmake--build . 

Use

chmod +x cpp_fingerprint_generator
./cpp_fingerprint_generator path/to/input.wav path/to/output_prints.txt