如何从 AudioInputStream 获取一段样本的频谱?
是否有一个很好的(纯Java)开源库来获取从 音频输入流?
Is there a nice (pure Java) open source libary to get the frequence spectrum of samples taken from a AudioInputStream?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几个 FFT 库,例如 Apache Commons数学包括FFT。
但请记住,频谱估计比简单地进行傅立叶变换 (DFT) 更复杂。 (不过,最基本的方法,周期图,确实相当于计算 DFT并取其绝对值)。
There are several FFT libraries, for example Apache Commons Math includes a FFT.
Bear in mind, though, that spectrum estimation is something more complicated than simply making a Fourier transform (DFT). (It's true, though, that the most basic method, the Periodogram, amounts to computing the DFT and taking its absolute value).
FFTW(最流行的 FFT 库之一)的网站据说有 Java 绑定。查看 http://www.fftw.org/download.html 上的说明。
The website for FFTW, one of the most popular FFT libraries, supposedly has Java bindings. Check out the descriptions on http://www.fftw.org/download.html .