简体   繁体   English

获得 0 Hz 处的 FFT 结果峰值

[英]Getting FFT result peaks at 0 Hz

I have an audio frame which is a NumPy array of length 16000.我有一个音频帧,它是一个长度为 16000 的 NumPy 数组。

波形

When I apply numpy FFT to the audio frame, I get a spectrum that peaks at 0 Hz.当我将 numpy FFT 应用于音频帧时,我得到一个峰值为 0 Hz 的频谱。 I tried different audio frames from the same audio file but all of them seem to have peaks at 0 Hz.我尝试了来自同一音频文件的不同音频帧,但它们似乎都在 0 Hz 处有峰值。 在此处输入图像描述

Could anyone please help me to understand where I am doing wrongly?谁能帮我理解我做错了什么? Thank you.谢谢你。

There is a bias of around -0.2, right?偏差大约为 -0.2,对吗? This is a constant value along with the time.这是随时间变化的恒定值。 This is to say that there is a strong component at 0 Hz compared with the variation around this constant value.这就是说,与围绕这个恒定值的变化相比,在 0 Hz 处有一个很强的分量。 You need only to interpret the results.您只需要解释结果。

Solution: try to subtract the average value from the signal in the time domain.解决方案:尝试从时域信号中减去平均值。 I suppose that, magically, the 0 Hz component will disappear.我想,神奇的是,0 Hz 分量会消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM