如何计算在Android的声音频率是多少? [英] How to calculate sound frequency in android?

查看:360
本文介绍了如何计算在Android的声音频率是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发的应用程序,计算在Android的声音频率。 Android设备将 从麦克风(即出方的声音)声音与我在应用一种颜色的背景画面。 对声音频率的变化,我必须改变屏幕的背景颜色。

I want to develop app to calculate Sound frequency in Android. Android Device will take Sound from microphone (i.e. out side sound) and I have one color background screen in app. on sound frequency changes i have to change background color of screen .

所以我的问题是我如何获得声音的频率?

So my question is "How can i get sound frequency"?

有没有Android的API可用?

is there any android API available?

请帮我出这个问题。

推荐答案

您的问题解决了<一href="http://netscale.cse.nd.edu/twiki/pub/Main/Projects/Analyze_the_frequency_and_strength_of_sound_in_Android.pdf"相对=nofollow>这里编辑:<一href="http://web.archive.org/web/20120131092650/http://netscale.cse.nd.edu/twiki/pub/Main/Projects/Analyze_the_frequency_and_strength_of_sound_in_Android.pdf"相对=nofollow>此处存档。您也可以通过使用 FFT 分析频率。

Your problem was solved here archived here. Also you can analyze the frequency by using FFT.

编辑: FFTBasedSpectrumAnalyzer (例如code,从评论中的链接)

FFTBasedSpectrumAnalyzer (example code, the link from the comment)

这篇关于如何计算在Android的声音频率是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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