Comparing sound files if not completely identical

后端 未结 4 1248
执笔经年
执笔经年 2020-12-07 15:46

Is there any way to programatically compare two sound files to determine if they are identical, or nearly identical? These are not mp3 files and do not have any ID3 or othe

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 16:35

    The wikipedia article on acoustic fingerprinting mentions a number of products, including the opensource libfooid. Basically you're looking at going into the frequency domain, taking rough levels over a relatively small number of bands (say 32), to give you a string that represents something like 25ms of sound, doing that for the whole file, then doing a fuzzing comparison of those strings for different files. It's fairly complex, but needs doing - comparing the actual samples won't get you anywhere as something as simple as a volume shift by a few percent will throw out the whole match.

提交回复
热议问题