WebkitSpeechRecognition Returning Network Error in Electron

后端 未结 2 1428
南笙
南笙 2021-01-14 07:49

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 libra

相关标签:
2条回答
  • 2021-01-14 08:17

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

    0 讨论(0)
  • 2021-01-14 08:36

    Configure your own Google Speech API credentials using https://console.developers.google.com 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.

    0 讨论(0)
提交回复
热议问题