
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Port of Chromaprint C/C++ library to Ruby.
A client-side library that implements a custom algorithm for extracting fingerprints from any audio source.
apt-get install libchromaprint-dev
# At the time of this writing, chromaprint is unavailable in MacPorts or Fink:
brew install chromaprint
# Create context for rate=44100 and channel=1.
context1 = Chromaprint::Context.new(44100, 1)
# Get audio data. Data should be in raw audio format with 16-bit signed samples.
# The library doesn't care about decoding formats like mp3 or ogg, you should
# do it yourself.
data1 = File.binread('/1.wav')
# Create context for rate=22050 and channel=2 and get fingerprint
context2 = Chromaprint::Context.new(22050, 1)
fingerprint1 = context1.get_fingerprint(data1)
# Get fingerprint of another audio
context2 = Chromaprint::Context.new(44100, 2)
fingerprint2 = context2.get_fingerprint(File.binread('/2.wav')
# Compressed fingerprint, returned by chromaprint_get_fingerprint() C function.
fingerprint1.compressed # => "AQAALOkUKdlChE92NNeFn8EjF9..."
# Raw fingerprint, returned by chromaprint_get_raw_fingerprint() C function.
fingerprint1.raw # => [294890785, 328373552, 315802880, 303481088, ...]
# Compare 2 fingerprints, result is 0..1 range, where 1 is 100% similarity.
fingerprint1.compare(fingerprint2) # => 0.93231
rake spec
Copyright (c) 2013 TMX Credit.
FAQs
Unknown package
We found that chromaprint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.