Chromaprint
Port of Chromaprint C/C++ library to Ruby.
A client-side library that implements a custom algorithm for extracting fingerprints from any audio source.
Dependencies
Debian / Ubuntu
apt-get install libchromaprint-dev
Mac
brew install chromaprint
Usage
context1 = Chromaprint::Context.new(44100, 1)
data1 = File.binread('/1.wav')
context2 = Chromaprint::Context.new(22050, 1)
fingerprint1 = context1.get_fingerprint(data1)
context2 = Chromaprint::Context.new(44100, 2)
fingerprint2 = context2.get_fingerprint(File.binread('/2.wav')
fingerprint1.compressed
fingerprint1.raw
fingerprint1.compare(fingerprint2)
Run tests
rake spec
Credits
Copyright
Copyright (c) 2013 TMX Credit.