AddictedCS / soundfingerprinting

Open source audio fingerprinting in .NET. An efficient algorithm for acoustic fingerprinting written purely in C#.
https://emysound.com
MIT License
935 stars 188 forks source link

Library and 6-sec files #221

Open dsenash opened 6 months ago

dsenash commented 6 months ago

Hi, I am using library for comparing 6sec audio files. Usually it is working but I found intermittently lib shows two absolutely different files as similar with quite big confidence - 0.58. For example I am doing 20 attempts with the same settings, same files, everything is the same. But from 20 attempts - 4 attempts are negative. It means 16 attempts were recognized as these two files are different and 4 attempts were recognized as these two files are similar. Actually it is two absolutely different files with length 6 sec both. Example: curl http://127.0.0.1:5034/api/Detection/AnalyzeFile?path=/app/samples/c097ab18-e6af-4ceb-8e63-0fa557664993.wav {"isMatch":false,"sampleName":"","confidence":0.0} curl http://127.0.0.1:5034/api/Detection/AnalyzeFile?path=/app/samples/c097ab18-e6af-4ceb-8e63-0fa557664993.wav {"isMatch":true,"sampleName":"37bff69e-c40d-4759-89e5-df82acebe56e_1701158109.wav","confidence":0.5896070246149416}

The same files but result is absolutely different. 0.58 it is big confidence. Settings are default. I tried to change some settings but it doesn't help. Is there are ideas, recommendations?

Best regards, Dmitry

AddictedCS commented 3 months ago

Can you share the 6-second files? There was a fix done in version v10.3.0 that handles differrently tone signals, which may have impacted use cases similar to yours.

Feel free to try v10.3.0 and post back your findings.