I need to capture audio in mp3 format using Java and was looking for any sample code. Any code that converts wave file into mp3 would also work. The code should work on Wi开发者_JS百科ndows and Mac. I looked at JLayer but could not find any sample code. I used JMF but the CaptureDeviceManager does not find any device.Please let me know the usage code as well.
It ain't sample code, but there is a library here http://www.javazoom.net/mp3spi/mp3spi.html that works with mp3 format in Java. I hope it can help. I only have sample code of this library in Jython...
精彩评论