Java resample .wav soundfile without third party library

audio, java, wav

Solution

Since you are now accepting Third Party libraries, here is my suggestion

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 has a method named

public void setSamplingRate(java.lang.Integer bitRate)

Which allows you to resample audio with the given bitrate.

Problem

Is it possible to resample a `.wav` file from 22050 khz to 44100 khz in java without the use of any third party library? Maybe using `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?

Original source