unmade / audiomatch

Find similar audio files easily
MIT License
144 stars 12 forks source link

Comparing short audio files #21

Closed galarlo closed 1 year ago

galarlo commented 1 year ago

Hi, I'm interested in finding near-duplicate audio files. My dataset is about 3000 thousands short audio files, between 0.5 seconds to 5 seconds. Unlike Shazam, both the "target" audio (i.e. the songs in Shazam's case) and the user input are short, and both might contain noise.

Can this library help? If so, are there any recommendations for tuning parameters?

N.B - if a file is matched to multiple other files, it's fine - I have a less efficient algorithm that can verify which match is correct. In other words, I can handle some amount of false positives, but I don't want false negatives.

unmade commented 1 year ago

Hey, @galarlo I'm afraid this library won't help you with such short files. If I remember correctly, the chromaprint, the library that actually calculated fingerprints, requires input files to be at least 10 seconds