Converting the sample rate of audio files

Purpose. Converts audio files, changing the sample rate of the audio data.


java SampleRateConverter -h

java SampleRateConverter targetsamplerate sourcefile targetfile



prints usage information


the sample rate that should be converted to


the file name of the audio file that should be read to get the audio data to convert


the file name of the audio file that the converted audio data should be written to

Bugs, limitations. Sample rate conversion can only be handled natively by Tritonus. If you want to do sample rate conversion with the Sun jdk1.3/1.4, you have to install Tritonus' sample rate converter. It is part of the 'Tritonus miscellaneous' plug-in. See Tritonus Plug-ins.

Source code.,