Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microphone capture in HTML5

Is there a way yet to access microphone in HTML5/ JavaScript?

It is planned for audio streaming, not recording. So nothing with writing to a file etc., but just streaming microphone input.

There is an Audio API and getUserMedia(). At the moment, getting audio doesn't seem possible. Is there a way or a workaround?

like image 296
yetanotheruser Avatar asked Feb 15 '26 18:02

yetanotheruser


1 Answers

If you add "x-webkit-speech" to your input field I believe all web kit browsers will add the HTML5 audio icon which enables audio input.

<input type="text" name="query" spellcheck="false" placeholder="Search the Site" tabindex="1" x-webkit-speech>
like image 179
user1284329 Avatar answered Feb 18 '26 07:02

user1284329



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!