Android 包含 javax.sound.sampled.*
对于 Android 应用程序(适用于 Android 版本 2.1),我想分析声音文件并获取频率。因此,我想为此目的包含 javax.sound.sampled.* 。我怎样才能得到它?任何外部 jar 文件可以为我做到这一点吗?有这样的jar文件吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
安卓不支持:(
Android does not support it :(
快速傅里叶变换 (FFT) 库应该可以满足您的目的。不幸的是我不能推荐任何,因为我自己没有尝试过。
A Fast Fourier Transform (FFT) library should be usable for your purpose. Unfortunately I cannot recommend any as I haven't tried them myself.
经过大量的谷歌搜索,终于偶然发现了这个用纯java编写的FFT库,在Android上运行得很好: http://moonblink.googlecode.com/svn/trunk/HermitLibrary/doc/ca/uol/aig/fftpack/package-summary.html
请注意,您将需要来自隐士图书馆也是如此,但非常简单。它的速度足够快,我可以对立体声流进行 FFT、操纵频谱并实时重新合成音频 :-D
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