Android include javax.sound.sampled.*

自作多情 提交于 2020-01-15 07:07:06

问题


For an Android app (for Android version 2.1),I want to analysis a sound file and get the frequency. Therefore I want to include javax.sound.sampled.* for that purpose. How can I get that? Any external jar file can do it for me? Any such jar file is available?


回答1:


Android does not support it :(




回答2:


A Fast Fourier Transform (FFT) library should be usable for your purpose. Unfortunately I cannot recommend any as I haven't tried them myself.




回答3:


After lots of google searching, finally stumbled across this FFT library, written in pure java, works works great on Android: http://moonblink.googlecode.com/svn/trunk/HermitLibrary/doc/ca/uol/aig/fftpack/package-summary.html

Note that you will need some other bits from the hermitlibrary as well, but it's pretty straightforward. It's fast enough that I can FFT a stereo stream, manipulate the spectrum, and re-synthesise the audio in realtime :-D



来源:https://stackoverflow.com/questions/7026164/android-include-javax-sound-sampled

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