Java Sampling Rate Conversion

非 Y 不嫁゛ 提交于 2019-12-10 18:02:36

问题


In my Java code, I would like to convert a WAV file of 44100 Hz to a WAV file of 8000 Hz. I know that I have to low-pass filter and then decimate (+interpolate) (the DSP theory) but I do not want to implement it from scratch.

I am looking for a library that can efficiently do it. Do you know any?

I am able to read wav files into a buffer and also write wav files from buffer to file if it will make it easier.


回答1:


You should look at FMJ. It provides a wrapper for ffmpeg which can handle all sorts of conversion work (including audio resampling) very efficiently.



来源:https://stackoverflow.com/questions/10939059/java-sampling-rate-conversion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!