AddictedCS/soundfingerprinting
Open source audio fingerprinting in .NET. An efficient algorithm for acoustic fingerprinting written purely in C#.
What it solves
SoundFingerprinting tackles the problem of identifying unknown audio or video content by comparing perceptual fingerprints against a stored database. It allows fast insertion and retrieval of these fingerprints, enabling applications like detecting ads in radio streams, finding duplicate files, or recognizing a song from a short sample.
How it works
The library extracts acoustic or video fingerprints from media files, which are compact hashes that capture perceptual characteristics. These fingerprints are stored in a configurable datastore (default is in-memory, with persistent storage available via the Emy package). To recognize an unknown query, you compute fingerprints from the query samples and search the datastore for similar fingerprints. The algorithm supports pitch-compensation for vinyl-style playback, realtime seam-jump policies for continuous streams, and spectral-profile bridging to handle regions like silence or broadband noise where hashes may not match.
Who it’s for
It’s designed for companies, enthusiasts, and researchers in digital signal processing, data mining, and audio/video recognition. The README highlights radio ad detection as the most frequent use case, and it’s also used for duplicate detection and building music recognition systems.
Highlights
- Efficient algorithm with high precision and recall for audio and video fingerprinting.
- Supports both audio and video content.
- Default in-memory storage, plus persistent storage via Emy (community version free for non-commercial use).
- Asynchronous storage contract since v16.0.0.
- Realtime seam jump policy for stitching consecutive matches and handling repeated audio.
- Spectral-profile bridging strategies to match across regions where hashes don’t align (e.g., silence, broadband noise).
- Version matrix for compatibility with FFmpeg and Emy.
- MIT licensed.
Related
- Project
- Project
- Project
- Project
- Project