问题
I want to convert MP3 file to PCM in Java.
How to do that?
回答1:
- Get the mp3plugin.jar of the JMF.
- Add it to the run-time class-path of the app. to provide a decoder SPI for MP3.
- Get an AudioInputStream for the MP3 from the AudioSystem of Java Sound.
- Convert it to PCM using getAudioInputStream(AudioFormat,AudioInputStream).
来源:https://stackoverflow.com/questions/12437804/convert-mp3-to-pcm-in-java