Java Sampling Rate Conversion

2019-07-02 11:02发布

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.

标签: java audio wav
1条回答
虎瘦雄心在
2楼-- · 2019-07-02 11:25

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

查看更多
登录 后发表回答