Can I use javascript to record voice on a web app?

Tsundoku picture Tsundoku · Feb 26, 2013 · Viewed 26.8k times · Source

It seems I can only use Flash or Java to record voice on a web app. Is there a way of doing it via JavaScript?

Answer

Philip Kirkbride picture Philip Kirkbride · Feb 26, 2013

It can be done but the solution won't work across all platforms at the moment.

<input type="file" accept="audio/*;capture=microphone">

See HTML5 Media Capture

Currently Supported By:

Android 3.0 browser, Chrome for Android (0.16), Firefox Mobile 10.0, iOS6 Safari and Chrome (partial support)

Links:

http://www.html5rocks.com/en/tutorials/getusermedia/intro/

Audio capturing with HTML5