How to calculate sound frequency in android?

Ashish Wadatkar picture Ashish Wadatkar · Oct 4, 2012 · Viewed 39.6k times · Source

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"?

is there any android API available?

Please help me out of this problem.

Answer

ymn picture ymn · Oct 4, 2012

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

EDIT: FFTBasedSpectrumAnalyzer (example code, the link from the comment)