如果不完全等同比较的声音文件 [英] Comparing sound files if not completely identical

查看:150
本文介绍了如果不完全等同比较的声音文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式比较两个声音文件,以确定它们是否是相同的,或几乎相同?这些都不是mp3文件,并没有任何ID3或其他元数据,但普通的​​WAV文件。比较校验和值可能无法正常工作,因为他们可能不完全一致。

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 other meta data, but plain wav files. Comparing the checksum values may not work as they may not be completely identical.

推荐答案

声学指纹的维基百科的文章中提到一个数字的产品,其中包括开源libfooid。基本上你正在寻找进入频域,以粗糙的水平在一个相对较少的频段(例如32),给你重新presents类似的声音为25ms的字符串,这样做对整个文件,然后做这些字符串不同的文件的模糊比较。这是相当复杂的,但需要做的 - 比较实际的样本不会得到你在任何地方一样由少数%的体积转变,因为简单的东西会扔掉整场比赛

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.

这篇关于如果不完全等同比较的声音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆