开发者

Android include javax.sound.sampled.* [duplicate]

This question already has answers here: javax.* cannot be imported in my Android app? (5 answers) Closed 1 year ago.

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 exter开发者_如何学编程nal jar file can do it for me? Any such jar file is available?


Android does not support it :(


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜