YerkoPalma / choo-stt

:microphone: Simple speech-to-text in the browser for choo
MIT License
13 stars 3 forks source link

sst:end fires right after sst:start #3

Open timsim00 opened 6 years ago

timsim00 commented 6 years ago

Can't seem to get this to work (chrome/OSX). However, this demo is working. Also, browser is not asking permission to use microphone when running example for choo-stt.

YerkoPalma commented 6 years ago

That's weird. Are you running the example from this repo? if not, could you post the code you're using?

timsim00 commented 6 years ago

Yes, just cloned, npm install, npm start. Node 6.9.4 and 8.6.0. state.stt.serviceURI is undfined. In the console I can "new webkitSpeechRecognition()".

timsim00 commented 6 years ago

Got it working. For my version of chrome (62.0.3202.94) there doesn't seem to be a way to blanket allow all sites access to the microphone. So I have to ask permission with getUserMedia(). But this now has to be done only via ssl, so I had to run choo-stt using bankai or figure out budo ssl. So I ran with bankai, requested microphone from console, clicked start, and it worked.

YerkoPalma commented 6 years ago

In my version of chrome, it does ask for permission for the mic, withouth having to call getUserMedia() or set ssl. It is good to know, I'll keep this open for now, perhaps is good to mention in docs