Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google WebSpeech API is throwing 'not-allowed' error for microphone permission

I am using Google's WebSpeech API found on this site: https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API

With Python's http.server on my Windows machine, enter image description here

it works without any problem: enter image description here

I upload exactly same files, same API but it does not work in my CentOS remote server throwing a 'not-allowed' error for the microphone permission: enter image description here

I thought that problem could be http server related. So I tried with Apache Httpd, Python http.server and Nginx. None of them worked.

Any idea about what's blocking the microphone? Thanks!

like image 411
Kerem Avatar asked Sep 04 '17 16:09

Kerem


1 Answers

I couldn't find documentation backing this up, but from my own experience I can confirm that only after installing an SSL certificate on a website, chrome stopped blocking it from requesting microphone access.

like image 166
alesub Avatar answered Nov 14 '22 20:11

alesub