简体   繁体   English

如何从AudioInputStream获取采样片段的频谱?

[英]How to get the frequency spectrum of a segment of samples from a AudioInputStream?

是否有一个不错的(纯Java)开源库来获取从AudioInputStream采样的频率频谱?

There are several FFT libraries, for example Apache Commons Math includes a FFT. 有几个FFT库,例如Apache Commons Math包含一个FFT。

Bear in mind, though, that spectrum estimation is something more complicated than simply making a Fourier transform (DFT). 但是请记住, 频谱估计比简单地进行傅立叶变换(DFT)更复杂。 (It's true, though, that the most basic method, the Periodogram , amounts to computing the DFT and taking its absolute value). (不过,的确,最基本的方法Periodogram等于计算DFT并采用其绝对值)。

The website for FFTW, one of the most popular FFT libraries, supposedly has Java bindings. FFTW的网站是最流行的FFT库之一,据说它具有Java绑定。 Check out the descriptions on http://www.fftw.org/download.html . http://www.fftw.org/download.html上查看说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取声音的频率以在 JavaME 中绘制频谱? - How to get the frequency of the sound to draw spectrum in JavaME? 如何从InputStream转换为AudioInputStream - How to cast from InputStream to AudioInputStream 如何获得使用AudioInputStream Java下载文件的进度 - How to get progress of downloading a file with audioinputstream java 如何获得AudioInputStream的持续时间? - How can I get duration of AudioInputStream? 从Java中的RTMP流中获取AudioInputStream? 或者如何混合多个RTMP流的音频 - Get AudioInputStream from an RTMP stream in Java? Or how to mix audio of multiple RTMP streams 来自套接字的“无尽”音频输入流 - "Endless" AudioInputStream from socket 如何从视频文件中提取音频并将其设置为JavaSound AudioInputStream? - How to extract audio from a video file and make it as JavaSound AudioInputStream? 如何在 Flutter/Dart 中从音频文件中获取字节数据(必须是有符号整数/字节),如 AudioInputStream 在 java 中为您提供 - How to get byte data from audio file (must be as signed int / bytes) in Flutter/Dart like AudioInputStream gives you in java 如何连续播放AudioInputStream的音频? - How can I continuously replay audio from an AudioInputStream? 尝试获取音频文件的audioInputStream - Trying to get audioInputStream of an audio file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM