ChristopherStephan / IWGI-Speech

3 stars 4 forks source link

Skip the questions of grant access to the microphone #37

Closed schlomm closed 10 years ago

schlomm commented 10 years ago

According to Google Docs, the website, which uses the microphone (or camera) must be opened via https: https://support.google.com/chrome/answer/2693767?hl=en

So...to skip the prompt, browse your site on your local webserver via https: e.g.: https://localhost/sg/MultimodalGIS_Chrome.html

Possibly you will have an icon like this: http://support.xqueue.de/wp-content/uploads/2013/10/chrome_mixed_content2.gif Click on the icon and check the mark to enable loading of unsecured content.

Next time, for the Chrome version, you just need to click on the Start button. No prompt of allowing the access to the mic. For the Sphinx version it's even better, because the recognition starts straight after loading the page.

schlomm commented 10 years ago

Even a better way for the chrome version: I've added:

    <body onload ="startButton();">

to the .html, which execute the function of enabling the voice recognition.

schlomm commented 10 years ago

Keep in mind that website has to be opened via https://