比较两个音频文件 [英] Compare two audio files

查看:724
本文介绍了比较两个音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我有很多的音频文件重新presenting同一首歌。然而,其中一些是质量比原来的更坏,而一些被编辑到,他们不原曲不再匹配。我想要做的就是编程这些音频文件比较原始的,看看哪些匹配了这首歌,不管质量。直接比较显然行不通的,因为文件的质量参差不齐。

Basically, I have a lot of audio files representing the same song. However, some of them are worse quality than the original, and some are edited to where they do not match the original song anymore. What I'd like to do is programmatically compare these audio files to the original and see which ones match up with that song, regardless of quality. A direct comparison would obviously not work because the quality of the files varies.

我相信这可以通过分析歌曲的结构和比较原来的工作要做,但我对此事一无所知音响工程,这样并不能帮助我很多。所有的歌曲都是相同的格式(MP3)的。另外,我也使用Python,因此,如果有它的绑定,那将是非常美妙;如果没有,东西在JVM甚至是本机库将被罚款为好,只要它运行于Linux,我可以弄清楚如何使用它。

I believe this could be done by analyzing the structure of the songs and comparing to the original, but I know nothing about audio engineering so that doesn't help me much. All the songs are of the same format (MP3). Also, I'm using Python, so if there are bindings for it, that would be fantastic; if not, something for the JVM or even a native library would be fine as well, as long as it runs on Linux and I can figure out how to use it.

推荐答案

复制从<一个href=\"http://stackoverflow.com/questions/476227/detect-duplicate-mp3-files-with-different-bitrates-and-or-different-id3-tags/476382#476382\">that回答:

完全相同的问题,因为很久以前,人们在老的Audioscrobbler和目前的MusicBrainz 工作过的。暂且,Python的项目,可以在你的追求帮助,是皮卡德,这将标记的音频文件(不仅是MPEG 1层3个文件)与GUID(实际上,其中几个),并从那时起,匹配的标签是相当简单的。

The exact same question that people at the old AudioScrobbler and currently at MusicBrainz have worked on since long ago. For the time being, the Python project that can aid in your quest, is Picard, which will tag audio files (not only MPEG 1 Layer 3 files) with a GUID (actually, several of them), and from then on, matching the tags is quite simple.

如果您preFER做到这一点作为自己的一个项目, libofa 可能会有所帮助。对于Python包装的文档也许会帮助你最。

If you prefer to do it as a project of your own, libofa might be of help. The documentation for the Python wrapper perhaps will help you the most.

这篇关于比较两个音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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