question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webkitSpeechRecognition disabled and no way of detection

See original GitHub issue

Description

Carried over from https://github.com/brave/browser-laptop/issues/15312

In our application, we use a Speech to Text Recognition. Depending on whether or not a service is available in a given browser, we’ll go in the following order for the used service.

Web Speech API Watson API Google Speech Web Speech API is available in Chrome, which makes it available in Brave. However, it is disabled in Brave from returning data results, and we have no way of telling which speech service to use.

We need a way of detecting whether the Browser is a Brave browser so we know to ignore the disabled API, or for the API to be removed since it is not functional.

Steps to Reproduce

        navigator.getUserMedia({ audio: true },
          (stream) => {
             let recognition = new Recognition()

             // API Options
             recognition.lang = 'en-US';
             recognition.maxAlternatives = 1
             recognition.interimResults = true;

             // Results callback
             recognition.onresult = (event) => console.log(event)

             recognition.start()
          }

What version of Brave are you using?

5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:12
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Hri7566commented, Jun 20, 2021

any news on this? it’s been mad quiet here and this seems like a feature that should have been implemented and working a long time ago

1reaction
uc-asvcommented, Nov 19, 2020

Hi, I have also the same issue. Speech synthesis API is not working on the brave browser and working in all the other browser is there any solution for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

webkitSpeechRecognition on Android Chrome - Stack Overflow
I'm using a simple Speech to text detection with webkitSpeechRecognition . This code works great on Windows Desktop ...
Read more >
Using the Web Speech API - MDN Web Docs
Speech recognition involves receiving speech through a device's microphone, which is then checked by a speech recognition service against a ...
Read more >
webkitSpeechRecognition and Rasa | The Rasa Blog
You can, for example, detect speech via the Web Speech API. ... before you can expect the webkitSpeechRecognition to recognise any speech.
Read more >
Speech Recognition Using the Web Speech API in JavaScript
Now, inside the script file, let's check if the webkitSpeechRecognition class is available in the window object. If not, let's console.log ...
Read more >
Voice driven web apps - Introduction to the Web Speech API
First, we check to see if the browser supports the Web Speech API by checking if the webkitSpeechRecognition object exists. If not ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found