How To Read Sound Frequency using Mobile Microphone?

a 夏天 提交于 2019-12-08 15:05:25

问题


I am working on an application. Here I want to read various sounds using Android Application. I know how to record in Android. Now what I want to do is to read a sound and based on its frequency I want to display it on Android Screen. So how can I read the frequency in Hz or KHz?


回答1:


You will need to perform a discrete Fourier transform on your recorded audio samples. You can write code yourself or use a library for it. Unfortunately I have no idea which FFT libraries exist for Java, but I am sure you can google that. I found two in 2 minutes:

  1. http://www.ee.ucl.ac.uk/~mflanaga/java/FourierTransform.html
  2. https://sites.google.com/site/piotrwendykier/software/jtransforms


来源:https://stackoverflow.com/questions/9044747/how-to-read-sound-frequency-using-mobile-microphone

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