Questions tagged [webspeech-api]

A JavaScript API that allows web pages to include speech recognition and synthesis functionality.

This specification defines a JavaScript API to enable web developers to incorporate speech recognition and synthesis into their web pages. It enables developers to use scripting to generate text-to-speech output and to use speech recognition as an input for forms, continuous dictation and control. The JavaScript API allows web pages to control activation and timing and to handle results and alternatives.

References

Web Speech API Specification

Web Speech API Specification with errata applied

214 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
1 answer

Bad results on web speech recognition on safari browser

Greetins, I am currently trying to implement a speech recognition functionality on my application. According to the JS documentation here, speech to text is supported since Safari 14.1. Also, I am using the following configurations: const {…
3
votes
1 answer

Improving pronunciation when using the SpeechSynthesis Interface of the Web Speech API

I'm writing a front-end User Interface which uses the SpeechSynthesis Interface of the Web Speech API. I'm generally happy with it. I'm not concerned whether the words are pronounced in an American, British, Australian, Kiwi, South African, Indian,…
Rounin
  • 27,134
  • 9
  • 83
  • 108
3
votes
2 answers

How to detect if webkitSpeechRecognition actually works in a browser

Edge claims to support webkitSpeechRecognition, but it doesn't work (discussion here, doesn't work on websites meant for testing, like this mozilla one, with the error "Error occurred in recognition: language-not-supported" despite my US english…
www
  • 55
  • 1
  • 7
3
votes
1 answer

Web speech API grammar

Can somebody please tell me what this const grammar = '#JSGF V1.0; grammar colors; public = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghost | white | gold | goldenrod | gray |…
3
votes
0 answers

electron js Speech Recognition network error

I made an app with speech recognition and it worked well for a week or something like that and after time it just stopped working, i compiled the app and sent in to my friends, everyone have same error : 'network', i tried to delete all main code…
3
votes
2 answers

What are the languages supported by Web speech API?

I plan to convert text to speech on certain events. What are the languages supported by the Web Speech API? Web speech API
3
votes
1 answer

iOS13 Safari WebSpeechApi Bug: SpeechSynthesisUtterance won't use provided locale

There seems to be a bug in iOS 13 (Safari and WkWebView) that makes iOS use the device language voice and not find a suitable voice by looking at the 'lang' provided in the SpeechSynthesisUtterance. I worked around the issue by setting a suitable…
Stefan Norberg
  • 1,137
  • 13
  • 28
3
votes
0 answers

Speech recognition with Web Speech API on Chrome Android browser

I am developing a Vue web app and using Web Speech API for voice recognition. The recognition on the desktop Chrome browser is alright but the voice recognition on the Android Chrome browser is not up to the mark. I am not sure if this is an issue…
Queen
  • 158
  • 1
  • 8
3
votes
3 answers

Using Grammar with Web Speech API

Yes, There are questions like this one but they're too old...Now grammar is fully supported in chrome.link: https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars I'm using Web Speech API to implement Speech Recognition. The…
user8764001
3
votes
3 answers

Failed to execute 'start' on 'SpeechRecognition': recognition has already started

I am using a wrapper of Web Speech API for Angular6. I am trying to implement a system of starting-stopping after each 3.5s in order to be able to manipulate the results for these small parts. Even though I stop the recognition, before starting it…
3
votes
0 answers

Does Web Speech API uses the Google Speech API?

As per the Web API article SpeechRecognition and SpeechSynthesis supported by Chrome only and it uses the server-based recognition engine Does Server-based recognition Engine uses the Google Speech API ?
3
votes
1 answer

How to add punctuation to Web Speech API?

I am using the Web speech api and was wondering if there was any documentation on how to detect or add punctuation (commas or periods). My code currently looks something like this: var recognition = new…
grabury
  • 4,797
  • 14
  • 67
  • 125
3
votes
0 answers

Chrome - Microphone blocked even if it shows allowed

I am trying to implement and use the Chrome Speech API on my website but I'm not able to do it. The response I receive is that the "Permission to use microphone is blocked" but it really isn't. Microphone settings in Chrome are clearly showing that…
TerminatorX
  • 307
  • 3
  • 13
3
votes
2 answers

How to list and allow selection of input devices to be used for WebSpeech API?

Is there a way to programmatically list available input devices and allow to change the current one being used for the WebSpeech API? I'm aware Chrome shows a video icon on the address bar where a device can be chosen, but I want to make this…
Raisen
  • 4,385
  • 2
  • 25
  • 40