Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting FFT result peaks at 0 Hz

I have an audio frame which is a NumPy array of length 16000.

Wave form

When I apply numpy FFT to the audio frame, I get a spectrum that peaks at 0 Hz. I tried different audio frames from the same audio file but all of them seem to have peaks at 0 Hz. enter image description here

Could anyone please help me to understand where I am doing wrongly? Thank you.

like image 639
Akihero3 Avatar asked Nov 20 '25 20:11

Akihero3


1 Answers

There is a bias of around -0.2, right? 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. 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.

like image 193
Leos313 Avatar answered Nov 22 '25 09:11

Leos313



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!