问题描述
是否可以在不使用任何第三方库的情况下用Java将.wav
文件从22050 khz重新采样到44100 khz?
Is it possible to resample a .wav
file from 22050 khz to 44100 khz in java without the use of any third party library?
也许使用AudioInputStream
?
既然似乎没有第三方库就不可能轻易实现,那么存在哪些第三方库来完成重采样?
edit: since it seems that without a third party library it isnt possible easily, what third party libraries do exist to accomplish a resampling?
推荐答案
由于您现在正在接受第三方库,因此这是我的建议
有很多第三方库可让您对音频wav文件进行重新采样.就我而言(对于我而言(最近使用过)),最易于使用的第三方库是贾夫所有您需要做的就是放入罐子.不再像其他库那样繁琐的安装
There are a lot of third party libraries that allows you to resample an audio wav file, For me, in my case(And I've recently used) the most user friendly third party library is Javeall you need to do is include the jar. no more tedious installation like other libraries
Jave有一个名为
public void setSamplingRate(java.lang.Integer bitRate)
这允许您以给定的比特率重新采样音频.
Which allows you to resample audio with the given bitrate.
这篇关于Java没有第三方库的重新采样.wav声音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!