比较两个音频文件

编程入门 行业动态 更新时间:2024-10-27 10:18:27
本文介绍了比较两个音频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上,我有很多的音频文件重新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.

推荐答案

复制从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.

更多推荐

比较两个音频文件

本文发布于:2023-10-22 09:18:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1517094.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:音频文件   两个

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!