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

前端 未结 3 1986
無奈伤痛
無奈伤痛 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:27

    If you don't care about the longevity of your code, then Quicktime For Java is a good bet for media. It runs on Windows and Mac and will read and write pretty much any audio (and video) format. The downside is that Apple have not supported it for years, so while it still works, you're investing in a dying technology.

提交回复
热议问题