Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to record audio from client to server in PHP- or JAVA-based online web application?

Tags:

java

php

audio

I am building an online web application which offers clients to test their language skills.

The application consists of series of different test the clients can freely do. One of these tests is one where the client sees a sentence on the web-page and then is required to speak the sentence to a microphone. The idea would be to record the audio stream, send it to server and save it there to a file.

Is this possible using PHP, Java, or something similar to them?

Thank you for any help :)

like image 854
user1498926 Avatar asked Jul 03 '12 13:07

user1498926


1 Answers

I know you asked for PHP, I'm guessing that's your language of choice, but have you considered using html5 to record your audio? Note: browser support is still lacking but it might be worth looking into depending on your requirements.

Check out this tutorial; it uses the GETUSERMEDIA API to access you camera and microphone hardware.


Update: Here is another good tutorial on the subject.

like image 130
Jarrod Avatar answered Oct 12 '22 19:10

Jarrod