Convert a sound file to wav with a specific bitrate and reduce a specific part of the file

I have a sound file (mostly mp3, but it can be of any bitrate). I need a method to extract the specified part of the input file (no more than 40 seconds) into the wav 8-bit monaural output. I would appreciate any help or advice in choosing a java library for this.

0
source share
2 answers

You can use JavaLayer to decode mp3 in wav. Cutting a 40 second clip from wav should not be a problem.

You can find some tips on mixing stereo to mono here: http://www.jsresources.org/examples/SingleChannelStereoConverter.html

16- 8- - 8 : 16 pcm 8

EDIT: 40- :

- pcm. 16- 44100 , 16 * 2 = 4 , 44100 * 4 . , , , 44100 * 4 * 40 40 . , 8 .

+2

All Articles