How to record voice in a browser?

Petras picture Petras · Feb 17, 2009 · Viewed 14.9k times · Source

I need users to record their voice on a browser and then automatically upload the resulting mp3 to a webserver.

I am thinking the user presses a big fat start record/stop record button to do this.

This would then save a file on the users hard disk. Then it would be efficiently compressed and automatically ftp'd up to a website.

Is it possible to do this using ActiveX or perhaps Java? Or are there libraries available that help?

The application is for users who can install software if need be so it will be possible to install exe's or whatever.

Any suggestions are most appreciated.

Answer

Sampson picture Sampson · Feb 17, 2009

The ideal solution would be getUserMedia and the Stream API. Unfortunately, it is currently not well-supported across modern browsers. As of June 14, 2012 the only browser confirmed to have support according to caniuse.com is Chrome 21. Others appear to be working on solid implementations.

Until native support arrives, Flash can access and record both audio and video.