动态计算频率值?
在我的应用程序中,我想在录制音频时动态查找/计算音频,而不需要保存、播放等。现在我试图在 aurioToch 示例代码的帮助下做到这一点。在该示例中,在 FFTBufferManager 类方法(例如 GrabAudioData 和 ComputeFFT)内部,我无法找到它们在哪里计算频率值,因为动态取决于音频声音,我花了 5 天多的时间。请帮助我。
In my app, I want to find/calculate the audio frequency as dynamically when i am recording an audio and no need to save, play and all. Now i am trying to do that with help of an aurioToch sample code. In that sample, inside FFTBufferManager class methods such as GrabAudioData and ComputeFFT,Here I am not able to find where they are calculating frequency value as dynamically depends on the audio sound and I spent more than 5 days.please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的音频信号清晰纯净,则无需使用 FFT。只需数一下波峰和波谷即可。或者只是峰值。将该数字除以缓冲区中的样本数,然后乘以采样率。这就是你的频率值。
You don't need to use FFT if your audio signal is clear and pure. Just count the peaks and valleys. Or just peaks. Take that number and divide by the number of samples in your buffer, and then multiply by the sample rate. That's your frequency value.