Convert MP3 to PCM in Java

别说谁变了你拦得住时间么 提交于 2019-12-13 17:44:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!