synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
941 stars 101 forks source link

"Use browser microphone" not working #231

Open FlorinAcsinte opened 4 years ago

FlorinAcsinte commented 4 years ago

Hi. Just installed Rhasspy as a HomeAssistant addon. Trying to use the browser microphone fails.

TranscribeSpeech.vue:264 Uncaught TypeError: Cannot read property 'getUserMedia' of undefined at u.getMicrophonePermission (TranscribeSpeech.vue:264) at n (vue.runtime.esm.js:2023) at HTMLInputElement.t._withTask.t._withTask (vue.runtime.esm.js:1822) getMicrophonePermission @ app.e552a466.js:1 n @ vue.runtime.esm.js:8 t._withTask.t._withTask @ vue.runtime.esm.js:8

TranscribeSpeech.vue:264 Uncaught TypeError: Cannot read property 'getUserMedia' of undefined at u.getMicrophonePermission (TranscribeSpeech.vue:264) at u.startRecording (TranscribeSpeech.vue:191) at n (vue.runtime.esm.js:2023) at HTMLButtonElement.t._withTask.t._withTask (vue.runtime.esm.js:1822) getMicrophonePermission @ app.e552a466.js:1 startRecording @ app.e552a466.js:1 n @ vue.runtime.esm.js:8 t._withTask.t._withTask @ vue.runtime.esm.js:8

TranscribeSpeech.vue:204 Uncaught TypeError: Cannot read property 'stop' of null at u.stopRecording (TranscribeSpeech.vue:204) at n (vue.runtime.esm.js:2023) at HTMLButtonElement.t._withTask.t._withTask (vue.runtime.esm.js:1822) stopRecording @ app.e552a466.js:1 n @ vue.runtime.esm.js:8 t._withTask.t._withTask @ vue.runtime.esm.js:8

From those 3 errors, 1st one comes up when selecting "Use browser microhpone", 2nd one comes up when holding the button, 3rd one when releasing it.

Tried using https and http, did not make a difference. Weird thing is that the browser never asked me for microphone permissions, so it might be something related to that..

Tried this on chrome and firefox, on macos, and with firefox on ubuntu 19.10.