How To Read Sound Frequency using Mobile Microphon

2019-06-14 17:27发布

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条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-06-14 18:02

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
查看更多
登录 后发表回答