发现的另一个内的一个声音文件 [英] Finding one sound file inside of another

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

问题描述

我有两个声音文件,一个是简单地从较大的文件的摘录,而应该是对那部分。

I have two sound files, and one is simply an excerpt from the larger file, and should be nearly identical for that part

我如何可能会比较两个声音文件,以便找出较小的一个开始多远成较大的一个打?

How might I compare the two sound files so as to find out how far into the larger one the smaller one starts playing?

这将preferably是一个Linux终端命令,使用bash使用

This would preferably be a linux terminal command, for use with bash

推荐答案

如果他们是.WAV文件,一个是直接从其他创建的,那么就应该有一节这对于字节字节相同,和良好的比较工具可以帮您找到它。如果它们是来自同一来源,你可以DECOM preSS他们,同样的事情与持有相同的COM pressor创建的MP3。

If they are .WAV files and one was created directly from the other, then there should be a section which is byte for byte identical, and a good diff tool can find it for you. If they are mp3s created with the same compressor from the same source, you can decompress them and the same thing holds.

还有什么和它变得非常棘手。你可以尝试这两种转换为相同的原始WAV格式,然后做一些模糊匹配(如滑动一个顶着一个的部分,并寻找具有的差异至少RSS的地方)。

Anything else and it gets really tricky. You could try converting both to the same raw WAV format, and then do some fuzzy matching (like sliding a section of one against the other and finding the place with the least RSS of the differences).

或者你可以尝试通过打破文件成小块,对他们做的FFT,并寻找一系列匹配的主频率,这样做在频域中。

Or you can try doing it in the frequency domain by breaking the files into small chunks, doing FFTs on them, and looking for a series of matching primary frequencies.

我真的不相信无论是将工作做好。我第一次尝试时域方法。

I'm not really convinced either would work well. I'd try the time domain method first.

这篇关于发现的另一个内的一个声音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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