FFT frequency of sound

让人想犯罪 __ 提交于 2019-12-11 12:55:09

问题


On microphone at some time, starts flowing sound defined frequency(500hz). How do I know when the signal began to come to the microphone? To solve this problem, I know that I need to use FFT(Fast Fourier transform). But I dont understand, how should I take after FFT frequency? I'm use NAudio on C#. And my buffer from microphone is byte array.


回答1:


Using an FFT for this is overkill and not particularly appropriate. A much simpler solution for this kind of problem (tone detection/onset detection) is the Goertzel filter.




回答2:


Determining WHEN a signal is sampled into a buffer is a programatical problem.

That has nothing to do with determining WHAT the frequency content of the sampled signal is (using the FFT). See my reply for your other question...




回答3:


A narrow IIR bandpass filter followed by an envelope detector might be one possible method to try. Another thing to try might be cross-correlation against a matched filter, if you know the rise time of your tone burst. You will have to calibrate out the latency of your audio input signal path as well.



来源:https://stackoverflow.com/questions/13010141/fft-frequency-of-sound

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!