最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Cannot find microphone "allow" button in Opera browser - Stack Overflow

programmeradmin2浏览0评论

According to caniuse, Opera supports the Speech Recognition API. However, when attempting to view a simple example, I cannot find the "allow" button alluded to upon click of the microphone icon. In Chrome, the allow microphone dialog immediately pops up when the microphone icon is first clicked.

I'm testing on a clean install of Opera 39/Mac.

According to caniuse, Opera supports the Speech Recognition API. However, when attempting to view a simple example, I cannot find the "allow" button alluded to upon click of the microphone icon. In Chrome, the allow microphone dialog immediately pops up when the microphone icon is first clicked.

I'm testing on a clean install of Opera 39/Mac.

Share Improve this question edited Aug 18, 2016 at 20:30 Andy Hoffman asked Aug 18, 2016 at 19:51 Andy HoffmanAndy Hoffman 19.2k5 gold badges48 silver badges66 bronze badges 1
  • 1 The Web Speech API is flagged for Opera as Not supported on MDN. I'm wondering if the flag in caniuse could be a false positive due to Opera now using the Webkit / Blink Chromium fork also used by Chrome. The example is only checking if the webkitSpeechRecognition object exists to see of the browser is patible. – HiDeoo Commented Aug 22, 2016 at 12:37
Add a ment  | 

2 Answers 2

Reset to default 3 +50

Like HiDeo said, according to https://developer.mozilla/en-US/docs/Web/API/SpeechRecognition#Browser_patibility they do not support webkitSpeechRecognition.

But the real issue here is that you are not getting prompted to allow the use of your mic. Double check this is correct.

To always allow sites access to your camera and microphone:

  1. From the main menu, select Settings.
  2. Click Websites on the sidebar.
  3. Under Media, select allow sites to access my camera and microphone.

Ultimately, even if you get the mic issue working, you won't be able to use the speechRecognition anyways. If you really want to support Opera (and other browsers), you should think about using IBM bluemix, or Google's new speech to text (in Beta).

That's not how it works in 2019 on the current version; you will not see the options "Websites" which was in old versions.

  1. From the main menu, select Settings.
  2. Select Privacy and Security
  3. Select Content Settings
  4. Select Microphone
  5. Decide whether to "Ask before accessing".
  6. You will have to grant access on the page of the app you are seeking to use the microphone with, i.e. Discord
  7. Make sure you haven't blocked that app, i.e. Discord.
发布评论

评论列表(0)

  1. 暂无评论