Any good recommendations for MP3/Sound libraries for java? [closed] Any good recommendations for MP3/Sound libraries for java? [closed] java java

Any good recommendations for MP3/Sound libraries for java? [closed]


JLayer should do everything you need. It's not dead, it's just stable. The author finished it up quite a long time ago and the MP3 format has not seen much change since. You'll notice that his MP3SPI codebase is a little more recent. What MP3SPI does, is that translates JLayer's abilities into JavaSound APIs. Thus you can take any JavaSound code, add MP3SPI to the classpath, and expect that MP3 files will start working. It's pretty nifty. :)


You could try Xuggler. Here's how it does on your tests:

* read and write meta data (for example ID3v2 tags in mp3 and all):

if the underlying container type has meta-data support in FFmpeg, Xuggler supports it.

* convert compressed to to raw audio data and if possible raw audio data to mp3, ogg, aac, ...

Xuggler supports mp3, ogg (vorbis or speex), speex, vorbis, flac, aac, etc.

* digitally process the audio data (energy, timbre, Mel Frequency Cepstral Coefficients - MFCC, FFT, LPC, Autocorrelation, Wavelet, ...)

Xuggler does not have DSP modules so you'll need to find another library for that. But Xuggler will give you the raw data.


You should try to looking into gstreamer-java, I've had success with playing media via it and it should be possible to convert audio files with it. There is also JFFMpeg that integrates into JMF, I haven't poked around that much with it so I don't know the total extent of its capabilities and state, but its something to look at more closely.