webkitspeechrecognition

webkitSpeechRecognition on Android Chrome

你说的曾经没有我的故事 提交于 2020-08-02 07:28:06
问题 I'm using a simple Speech to text detection with webkitSpeechRecognition . This code works great on Windows Desktop. But - on Android Chrome browser - When starting detection, the microphone on the Android status bar shows only for 1 or 2 seconds . If there is no voice activity - it turns off and the voice recognition stops. If I do speak very fast after clicking "Start", it stays on. Any ideas how to make the Android microphone available at all time? if ('webkitSpeechRecognition' in window)

WebkitSpeechRecognition stops recording randomly

自闭症网瘾萝莉.ら 提交于 2019-12-22 05:09:10
问题 I'm trying to do a continuous speech to text transcription but can't seem to get webkitSpeechRecognition working as advertised. It seems to stop recording randomly (typically after a long duration of silence) even though I set continuous = true and interimResults = true. I can't even figure out what is causing this random stoppage as I put a simple log statement in EVERY.SINGLE.EVENT. that webkitSpeechRecognition has based on the docs I could find. Here is the script of what I have

chrome speech recognition WebKitSpeechRecognition() not accepting input of fake audio device --use-file-for-fake-audio-capture or audio file

夙愿已清 提交于 2019-12-13 05:09:15
问题 I would like to use chrome speech recognition WebKitSpeechRecognition() with the input of an audio file for testing purposes. I could use a virtual microphone but this is really hacky and hard to implement with automation, but when I tested it everything worked fine and the speechrecognition converted my audio file to text. now I wanted to use the following chrome arguments: --use-file-for-fake-audio-capture="C:/url/to/audio.wav" --use-fake-device-for-media-stream --use-fake-ui-for-media

webkitSpeechRecognition throws error “network”

血红的双手。 提交于 2019-12-11 06:21:48
问题 I have an speech recognition (using webkitSpeechRecognition) application which works great when ran on the standalone chrome browser. I converted my application into a electron package and it stops listening to the microphone and sends back an error with message "network". The documentation says "Network communication required for completing the recognition failed.". However it works good in chrome directly without any issues. I have also used "SpeechSynthesisUtterance" for text to speech and

How to know if webkitSpeechRecognition is started?

天涯浪子 提交于 2019-12-08 16:05:19
问题 I'm making a bot to listen to my voice. So i did : this.recognition = new webkitSpeechRecognition(); I can do this to start listen : this.recognition.start(); And this to stop listen : this.recognition.stop(); But do you know a function that will return me true if this.recognition is started and false if it's stopped ? Like "isStarted()" ? Thanks. 回答1: You can do this by raising a flag variable on the onstart and onend events: var recognition = new webkitSpeechRecognition(); var recognizing =

WebkitSpeechRecognition Returning Network Error in Electron

﹥>﹥吖頭↗ 提交于 2019-12-01 06:36:01
问题 Recently (in the past 1.5 weeks) the javascript library WebkitSpeechRecognition has refused to work properly. I've tested other electron applications that utilize the library (smart-mirror by evan cohen) and have run into issues with those. It throws network errors under every circumstance I've tested it. The library seems to work fine in standard browser environments but I can't seem to get it to work with electron. Does anybody have any experience in wrestling with this? 回答1: It seems that