Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Voice Input mic access

How does the HTML5 Voice input on Chrome (Mac) get access to the mic? Is it because I have the google voice plugin installed?

Shouldn't the browser explicitly ask for permission before giving access?

http://slides.html5rocks.com/#speech-input

like image 351
Ali Avatar asked Dec 06 '10 00:12

Ali


2 Answers

The microphone isn't directly being exposed to the Web page—it's just posting the speech (and receiving text) through Google servers so it's not considered a security issue (and you have to click the microphone icon to start it). It's pretty similar to how voice input works on Android and Google's iPhone/Blackberry apps.

like image 179
Nicholas Riley Avatar answered Oct 10 '22 11:10

Nicholas Riley


It is explicitly asking permission before giving access, that's what clicking the microphone icon is.

Think of it more like the <input type="file"> element -- you click "Browse", it shows you your file system, and the browser sends the selected file directly to the server.

like image 26
Jason Hall Avatar answered Oct 10 '22 12:10

Jason Hall