如何比较音轨 [英] how to compare audio track

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

问题描述

嗨!
我想知道是否有可能不通过歌曲名称来比较歌曲,而是通过比较歌曲的数字来比较歌曲.我是否需要将音轨转换成一些中间语言然后逐位比较的东西?
我想知道我对此有什么了解. (什么是AI ??)

hi!
I want to know if it''s possible to compare songs not by their names but by comparing the digits of the songs. Do I need something that will convert the audio track into some intermidiate language and then compare digit by digit?
I would like to know what are the things that I have to know for this . ( what is AI ??)

推荐答案

如果要检查两个文件是否相同,可以只创建SHA1或MD5哈希,然后比较哈希代码.因此,如果您知道音乐文件的格式相同,这将是检查它们是否相同的简便方法.假定您要问如何进行二进制比较.
If you want to check whether two files are the same, you can just create a SHA1 or MD5 hash and then compare the Hash codes. Thus, if you know the music files are in the same format, this would be an easy way to check if they are the same. This assumes you meant to ask how to do a binary comparison.


由于多种原因,您通常需要对此类项目进行真正的数字信号处理:
1.一点偏移将使比较过时(您必须进行关联).
2.不同的数据速率将具有不同的二进制数据.
3.不同的编码(wav与mp3)将具有不同的二进制数据.

我不知道是否有任何库已经在执行此操作(可能是WinAmp已经在执行此操作以进行自动轨道标记),但是如果您想从头开始执行此操作,则可能会很多工作.
You typically need real digital signal processing for this type of project for a number of reasons:
1. A bit offset will render a comparison obsolete (you''ll have to do a correlation).
2. Different data rates will have different binary data.
3. Different encoding (wav vs mp3) will have different binary data.

I don''t know if there''s any library that already does this (there may be, WinAmp already does this for automatic track tagging), but if you''d like to do it from scratch it may be quite a bit of work.


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

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