Convert sound file into wav with specific bitrate and cut specific part of the file
问题 I have some sound file(basically mp3 but it can be of any bitrate). I need to method to extract specified part of input file(not more than 40 seconds) into 8 bit mono wav output . I would appreciate any help or advice in choosing java library to do that. 回答1: You can use JavaLayer to decode mp3 into wav. Cutting a 40-second clip from a wav shouldn't be a problem. You can find some hints about mixing stereo to mono here: http://www.jsresources.org/examples/SingleChannelStereoConverter.html