I am adding voice input to a web app using webkitSpeechRecognition
(https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-onspeechstart).
This popup asking for permission to use mic appears each time I initiate recognition.start();
(recognition = new webkitSpeechRecognition()
) :
The users will need to use the mic several times throughout the life of the app, and I only want them to have to give their permission once.
How can I just have it show initially on web app load?