在iPhone上获取音频输入的频率 [英] Get Frequency for Audio Input on iPhone

查看:108
本文介绍了在iPhone上获取音频输入的频率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取iPhone上音频输入的频率?如果我只想找到特定的频率(即在x毫秒的时间范围内,检查是否在y Hz处有一个峰值),是否有必要使用FFT?

How can I get the frequency for an audio input on iPhone? Is it necessary to use a FFT if I'm only interested in finding a specific frequency (i.e. within a timeframe of x milliseconds, check if there is a peak at y Hz)?

推荐答案

如果您只对特定的固定频率(即纯音)感兴趣,则可以使用

If you're just interested in a specific, fixed frequency (i.e. a pure tone) then you can use the Goertzel algorithm which is very simple to implement and relatively lightweight (computationally) compared to an FFT.

这篇关于在iPhone上获取音频输入的频率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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