View Single Post
  #1 (permalink)  
Old 10-31-2007, 10:02 AM
sandeepk84@gmail.com sandeepk84@gmail.com is offline
Member
 
Join Date: Oct 2007
Posts: 3
sandeepk84@gmail.com is on a distinguished road
problem in playing mp3 on webpage which was recorded as wav and converted into mp3
Hi all,

I have recorded sound using my program. It uses classes like AudioSystem. And it's able to record and play also. but in my site I have an mp3 player. So i thought of converting the recorded wav file into mp3. For this i used LAME utility in Linux. And it was converted. Also it is being played in normal players like Winamp. But when i try to play this converted mp3 file using my player in my site it's having problem. Why is it like that?

Should i do something while capturing the sound from microphone so that it can be converted into mp3 format??
Or
Can I directly capture voice to an mp3 file??

In my program,

targetDataLine.open(audioFormat) where audioFormat is like

float sampleRate = 8000.0F;
int sampleSizeInBits = 16;
int channels = 1;
boolean signed = true;
boolean bigEndian = false;

Should I do something more or change something??

Please help me...

Thanx and Regards,
sand...
Reply With Quote
Sponsored Links