problem in playing mp3 on webpage which was recorded as wav and converted into mp3
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??
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...:o
Thanx and Regards,