Reputation: 723
I want to record audio using javascript and html5, there is device element in html5 but i dont know to use it. Found no examples for the same.
Upvotes: 7
Views: 4947
Reputation: 25054
currently, there are three ways to do it
wav
mp3
[ all code client-side, compressed recording], you can check out --> http://github.com/Mido22/mp3Recorderopus packets
[ client+ server(node.js
) code, compressed recording], you can check out --> http://github.com/Mido22/recordOpusUpvotes: 1
Reputation: 944210
No current stable browser supports the Stream API (formally known as <device>
), so in practical terms — you can't. The lack of examples using it is a consequence of this.
If you want to play with it, you have to use development branches of Chrome. There is a demo of voice input here.
Upvotes: 12
Reputation: 2757
A quick search returned https://labs.ericsson.com/developer-community/blog/beyond-html5-audio-capture-web-browsers, which contains the device
element you mentioned.
Upvotes: 0