帮助快速傅立叶变换,显示两个音频.wav之间的差异 [英] Help with fast fourier transform  that shows the difference between the two audio .wav

查看:146
本文介绍了帮助快速傅立叶变换,显示两个音频.wav之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要快速傅里叶变换的帮助 这显示了两个音频.wav和dusplay之间的差异它在百分比%

之间的差异,例如在c#或vb.net中的.wav中的语音之间的差异



我尝试了什么:



i不知道如何实现它

I want help with Fast Fourier Transform  that shows the difference between the two audio .wav and dusplay the diffrent between it in percentage%
such as diffrent between speech in .wav in c# or in vb.net

What I have tried:

i dont know how to implement it

推荐答案

你的问题很模糊。



但似乎你必须:



对两个音频文件执行FFT

搜索网络应该为您提供各种编程语言的示例代码和库,以及如何将FFT应用于WAV文件。



缩放结果

因为你想要百分比,你必须将两个FFT都缩放到相同的水平。



计算每个频率的百分比

最简单的部分:

Your question is rather vague.

But it seems that you have to:

Perform FFT on both audio files
Searching the net should provide you with example code and libraries for various programming languages and how to apply FFTs to WAV files.

Scale the results
Because you want the percentage ratio you have to scale both FFTs to the same level.

Caluclate the percentage ratio for each frequency
The simplest part:
ratio[freq] = 100 * scaled_fft1[freq] / scaled_fft2[freq]



显示结果

一个简单的x-y图,其中x是频率,y是上面计算的比率。


Display the result
A simpley x-y diagram where x is the frequency and y is the above calculated ratio.


这篇关于帮助快速傅立叶变换,显示两个音频.wav之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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