Clojure/Java:用于声音频谱分析的 Java 库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3444226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Clojure/Java: Java libraries for spectrum analysis of sound?
提问by jkndrkn
I am looking for a library that can accept a chunk of audio data and return the average amplitude over time within a given frequency band.
我正在寻找一个可以接受大量音频数据并返回给定频带内随时间变化的平均幅度的库。
I've already asked this question over at comp.dsp, but it's clear to me that acquiring the know-how to build this on my own using a basic FFT library is going to require more time and energy than I have at present. Here is my original question with more detai: http://groups.google.com/group/comp.dsp/browse_thread/thread/e04f78d439e9e2bd
我已经在 comp.dsp 上问过这个问题,但我很清楚,使用基本的 FFT 库获得知识来自行构建它需要比目前更多的时间和精力。这是我更详细的原始问题:http: //groups.google.com/group/comp.dsp/browse_thread/thread/e04f78d439e9e2bd
I've found lots of nice libraries for playing with sound (I used JSyn in the past), but none of these seem to be set up to return quick and dirty spectral information about a sound sample.
我发现了许多用于播放声音的不错的库(我过去使用过 JSyn),但是这些库似乎都没有设置为返回有关声音样本的快速而肮脏的频谱信息。
Any pointers would be much appreciated.
任何指针将不胜感激。
采纳答案by stacker
This Archived Blogshows a java implementation of the FFT algorithm which is very concise and reads audio files and calculates the frequency spectrum.
这个存档博客展示了 FFT 算法的 Java 实现,它非常简洁,可以读取音频文件并计算频谱。
You could also check Jtranforms open source FFT library
您还可以查看Jtranforms 开源 FFT 库
Unfortunately the blog is gone, here are some other resources on FFT.
不幸的是,博客不见了,这里有一些关于 FFT 的其他资源。
回答by Nicola Montecchio
回答by Petkovsky
Have you taken a look at this:
你有没有看过这个:
http://download.oracle.com/javase/tutorial/sound/TOC.html
http://download.oracle.com/javase/tutorial/sound/TOC.html
I have also used the Java Media Framework for video processing but I believe that they provide a good API for sound processing too. You should also look into that.
我还使用 Java Media Framework 进行视频处理,但我相信它们也为声音处理提供了很好的 API。你也应该调查一下。