有没有纯java的方式转换.WAV为.mp3? [英] Is there any pure java way to convert .wav to .mp3?

查看:584
本文介绍了有没有纯java的方式转换.WAV为.mp3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经努力了很多Java,但不能结合的Java的.wav的工作示例为.mp3转换器。此转换器将在Java小程序中使用,因此应该用纯Java编写,没有底层C code调用的库只能靠。

I've struggled a lot with Java but could not combine a working example of Java .wav to .mp3 converter. This converter will be used in a Java applet so it should depend only on libraries written in pure Java with no underlying C code calls.

任何人都可以提供一个完全工作的例子?

Can anyone provide a fully working example?

感谢您

推荐答案

看了你的波形文件@的 http://java.sun.com/javase/technologies/desktop/media/jmf/
和连接code到MP3 @ http://openinnowhere.sourceforge.net/lameonj/

Read your wave file @ http://java.sun.com/javase/technologies/desktop/media/jmf/ and encode to mp3 @ http://openinnowhere.sourceforge.net/lameonj/

随着指出,lameonj不是的纯粹的Java解决方案。对于这些选项似乎没有那么多,但看到其他SO问题:在Java中 MP3编码

As pointed out, lameonj is not a pure java solution. For that the options don't seem so many, but see the other SO question: MP3 Encoding in Java

这篇关于有没有纯java的方式转换.WAV为.mp3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆