我想录制音频并以 mp3 文件的形式保存到我的服务器,我在 google 上搜索并找到类似 this
但是它不是免费和开源的
我如何在java和php中将音频录制为mp3?
I want to record audio and save to my server as mp3 files, i googled and find like this
But it is not free and open source
How can i record audio as mp3 in java and php ?
发布评论
评论(3)
就 Java 而言,您可以使用 标准 Java 声音 进行录制,然后使用类似lameonj 进行 mp3 编码 - 所有免费工具!
In terms of Java, you could record with standard Java sound and then use something like lameonj to do the mp3 encoding - all free tools!
这个问题与您的问题相同,并且该人能够提出解决方案(他发布了答案)。
一些额外的信息。可以在小程序中录制声音。有关 Java Sound 和 applet 的信息,请参阅此页面。您需要签署您的小程序,这并不难。 问题 5 的答案没有提到这一点,但您可以创建自己的(不受信任的) 用于进行签名的证书。 这个问题这里有一些关于自签名代码的信息。
This question is the same as yours and the person was able to come up with a solution (which he posted as an answer).
A little additional information. It is possible to record sound in an applet. See this page for information on Java Sound and applets. You'll need to sign your applet, which isn't hard to do. The answer to question 5 doesn't mention this but you can create your own (untrusted) certificate with which to do the signing. This question here on SO has some information on self-signing code.
我解决了我的问题,我使用lame库来编码mp3,如果你想纯代码来编码mp3,你可以使用 this
它使用基于java的lame库
I solved my problem, I used lame library to encode mp3, If you want to pure code to encode mp3, you can use this
Its using java based lame library