Java没有第三方库的重新采样.wav声音文件 [英] Java resample .wav soundfile without third party library

查看:216
本文介绍了Java没有第三方库的重新采样.wav声音文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不使用任何第三方库的情况下用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 Jave all 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声音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆