View Full Version : how to record the voice in php

01-19-2008, 07:00 AM

i am doing online exam site.in my site i have to record the voice.i dont have any idea regarding this.i dont know,how to record the voice and hear the voice.can anyone help me?

thanx in advance.

01-19-2008, 07:30 AM
Never heard of anything like this before, so I'm just going to base this off my language knowledge instead.
PHP is a static language, it is preprocessed by the server and sent to the client in html format. With this in mind, any interaction between a php page and the client will result in no change to the server until it has been received via sometype of put method (such as a form).
A better option would be to use a java applet to preform these for you. Java can be used to capture voice from user input and saved into a database or some other media file, and is loaded statically into a users page. Much better solution. Off hand though, I don't know if anyone has written a java application for this specific task, and if they haven't you will probably need to overwrite the standard input or define a new input for a users microphone. Not too pleasant sounding :(

Short end of the stick, this is not a task that PHP is capable of preforming (well... maybe a CLI could do it, but I still doubt that, and it would be like 1000x harder in php than Java anyway).

01-19-2008, 08:00 AM
so there is no possible for doing this task in php?because am a newbie to php

01-19-2008, 11:14 PM
Not to the best of my knowledge, and as I mentioned I'm basing this off of the behaviour of PHP not off of experience in this field. It just doesn't seem that this is a task that PHP is capable of performing.

01-19-2008, 11:30 PM
Flash is your best option, record it in flash and send it from flash to php etc...

01-19-2008, 11:41 PM
I was going to suggest flash as well, but I was not certain if it was capable of preforming the recording or not.
Now I know, thanx mate I'll keep that in mind too :thumbsup:

01-19-2008, 11:45 PM
It's quite complicated, but can be done. I think there is some articles on http://tutorialized.com/ take a look! :)

01-25-2008, 06:07 AM

clearly i tell my requirement.am doing online exam site in php.in this site i have to add the voice.the recorded voice is given by client.i just upload that voice in my site.online streaming it seems.i dont have any idea about online streaming.can anyone help me.

01-25-2008, 08:22 PM
CHange your arguments guys.

I don't get it...

You have a php page, and you have a recorded audio file. You want to emplement the audio file into the page?

01-25-2008, 09:02 PM
You have a php page, and you have a recorded audio file. You want to emplement the audio file into the page?

I think you might want to re-read the original question.

01-26-2008, 12:04 PM
yes,i have php page and i have recorded voice.right.