Questions tagged [webkitspeechrecognition]

speech recognition support in the web browser engine WebKit

83 questions
3
votes
0 answers

end event fired immediatly after start on SpeechRecognition API

The onend callback is being called immediately after start() is called on SpeechRecognition, causing the voice recognition to never work: timestamp = Date.now() speech = new webkitSpeechRecognition() speech.onend = () => console.log('ended after',…
3
votes
0 answers

webkitSpeechRecognition always requesting microphone access every time I run the function that calls it

I'm making a virtual assistant with html and js, and it works, but every time you press the "Ask something" button, it will request microphone access, even after I gave it access before. Is there any way around that? I think it might be that I'm…
coder
  • 37
  • 7
3
votes
0 answers

How to use webkitSpeechRecognition, or web speech recognition api, in a cordova app?

It is important to be able to use an HTML5/js api for speech recognition. For example, we have an app that successfully runs in modern chrome browsers using webkitSpeechRecognition. However, it will not run within a cordova webview giving the…
3
votes
2 answers

Android, WebView and SpeechRecognition-API

I am facing a rather annoying problem: For a customer project I need to have some sort of "end of speech"-detection utilizing HTML5/JavaScript (customer specification). So I did some research and thought "well, let´s try the SpeechRecognition API"…
3
votes
2 answers

webkitSpeechRecognition throws error "network"

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…
Paresh Varde
  • 1,084
  • 3
  • 16
  • 39
3
votes
3 answers

WebkitSpeechRecognition Returning Network Error in Electron

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…
2
votes
1 answer

How to enable speech recognition in electron?

I have a chatbot which runs in electron and I need to add speech to text there. I used window.SpeechRecognition and window.webkitSpeechRecognition but it seems now chrome is not supporting to speech recognition in electron. Is there a way that I can…
2
votes
1 answer

Webkit Speech Recognition API: Single Syllables

I'm trying to use Webkit Speech Recognition API to recognize single syllables, rather than full words or sentences. As this API requires "grammar" definition, I wonder if there is a way to implement single syllable recognition. Something like "ah"…
Forepick
  • 919
  • 2
  • 11
  • 31
2
votes
1 answer

webkitSpeechRecognition calling onend immediately after start()

As soon as I call rec.start() it calls onstart and then onend straight away, never goes into onresult. Microphone is allowed for the web page, it asked once due to being https Using Chrome 81.0.4044.122 on osx, which is listed as supporting…
macasas
  • 497
  • 6
  • 20
2
votes
1 answer

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

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…
2
votes
0 answers

How to change webkitSpeechRecognition's volume or sensitivity?

I'm using Chrome's webkitSpeechRecognition to interact with a bot. If I say: "play music", it's playing an .mp3. That's cool, but if I give it a command while the music is on (e.g.: "stop music"), the bot heard me and understood the sentence, but…
TomSkat
  • 273
  • 4
  • 11
2
votes
0 answers

Capturing raw audio from WebkitSpeechRecognition

I've played with WebkitSpeechRecognition service used for transcribing speech into written words (https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API). In it's current state it's a decent toy, but not really accurate enough to be useful.…
Alexander Tsepkov
  • 3,946
  • 3
  • 35
  • 59
2
votes
1 answer

Is there a way to request microphone access for a chrome extension popup?

I'm currently playing around with WebKit speech API and trying to implement it in a chrome extension. Unfortunately, I'm having many troubles with getting the typical pop up that appears when a site asks for microphone permission (allowing you to…
2
votes
1 answer

WebkitSpeechRecognition Architecture

I know WebkitSpeechRecognition is only available on the chromium browser. However I am wondering how it converts the voice into text? I tried to monitor the network log from developer console on the Google Chrome and I don't see any network…
Paresh Varde
  • 1,084
  • 3
  • 16
  • 39
2
votes
1 answer

Android webkitSpeechRecognition .isFinal variable not showing correct value

I'm attempting to do some voice recognition stuff on mobile. Here's some code.. var recognition = new webkitSpeechRecognition(); recognition.onresult = function (e) { //This is called every time the Speech Recognition hears you speak. //You may…