javascript - WebkitSpeechRecognition Returning Network Error in Electron - Stack Overflow

Recently (in the past 1.5 weeks) the javascript library WebkitSpeechRecognition has refused to work pro

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?

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?

Share Improve this question asked Mar 25, 2016 at 5:14 PascalRascalPascalRascal 611 silver badge3 bronze badges 1
  • I'm facing the same problem. I've posted a question on Google chromium group. groups.google./a/chromium/forum/#!topic/chromium-html5/… – rnk Commented Apr 15, 2016 at 4:46
Add a ment  | 

3 Answers 3

Reset to default 5

It seems that Google has removed this feature for electron. See this discussion.

Configure your own Google Speech API credentials using https://console.developers.google. and then set them on your system's environment variables. I had the same issue and got it working with this way. Make sure to restart your system after configuring the environment variables. Sometimes they don't get into affect immediately.

Please refer for more detailed steps: https://docs.smart-mirror.io/docs/howto/how_to_obtain_chromium_speech_keys.html

GOOGLE_API_KEY, GOOGLE_DEFAULT_CLIENT_ID, GOOGLE_DEFAULT_CLIENT_SECRET set their value to Key, ClientID and ClientSecret respectively.

On some Windows PC's Speech Recognition will work in Edge but not Chrome. On another PC, seemingly with same software versions, it will not work at all and give NETWORK error. It's nice when it works, but I don't see how they expect to get any developers for it. I am developing a free word learning app, not mercial.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744714242a4589520.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信