4

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 ?

Kerem Bekman
  • 1,281
  • 2
  • 13
  • 24

3 Answers3

2

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!

Michael Berry
  • 70,193
  • 21
  • 157
  • 216
1

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.

Community
  • 1
  • 1
Paul
  • 19,704
  • 14
  • 78
  • 96
0

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

Kerem Bekman
  • 1,281
  • 2
  • 13
  • 24