How to split a wav file into smaller chunks using Java?

前端 未结 3 1987
無奈伤痛
無奈伤痛 2020-12-18 04:06

I have a very huge WAV file, about 100MB in size. I would like to use Java to read this wav file and split it into smaller chunks for every 2 seconds of audio.

Is i

3条回答
  •  北海茫月
    2020-12-18 04:40

    You could also look up the specification for a wav file which is really basic and simple. And then binary read the file, and save it again in smaller bits.

    I think it's a better learning experience to do it this way instead of always relying on libraries.

提交回复
热议问题