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
10
votes
3 answers

How to use the Web Speech API in NodeJS

I am wondering if it is possible to run the Web Speech API in node.js? Since node is Javascript based, I was assuming it could be used, but I can't find a way to use it natively in node. Would there be a way to "include" this Web Speech Library in a…
9
votes
1 answer

chrome.tts.speak character limit

I'm using Chrome's tts service in my extension. According to the chrome.tts documentation: The maximum length of the text is 32,768 characters. However, when I pass string that have more than 250 characters the engine will not read all utterance…
8
votes
2 answers

Is there Web Speech API Limitation?

I'm using W3C Browser Web Speech Api. I search everywhere but i cant find it answer. Is there any limitation for usage ? Demostration: https://www.google.com/intl/en/chrome/demos/speech.html
Korhan Özbek
  • 83
  • 2
  • 7
7
votes
1 answer

generate audio file with W3C Web Speech API

Is it possible to use W3C Web Speech API to write Javascript code which generates audio file (wav, ogg or mp3) with voice speaking given text? I mean, I want to do something like: window.speechSynthesis.speak(new SpeechSynthesisUtterance("0 1 2…
user983447
  • 1,598
  • 4
  • 19
  • 36
6
votes
2 answers

Issues with Web Speech API in Android Chrome

I'm trying to make use of the SpeechRecognition interface of the Web Speech API. It works fine on the desktop version of Chrome but I can't get it to detect any audio on the Android version. After failing to get my own code to work I tested this…
6
votes
1 answer

SpeechRecognition is not working in firefox

I am trying to test webspeech-api of firefox but encountering an error in the console saying ReferenceError: SpeechRecognition is not defined. I have even enabled media.webspeech.recognition.enable and media.webspeech.synth.enabled flags in…
6
votes
0 answers

Web speech api not working currently in chromium / electron / nw js?

I have been creating a desktop application using electron, which uses the javascript web speech api. It was working perfectly until the last few weeks. Currently, it does not work. I tried using Nw js and I've also checked it in Chromium browser,…
6
votes
1 answer

Preloading Web Speech API before calling speak

So I've noticed that after you do the first speak using speechSynthesis.speak, it speeds up dramatically in providing results. So my aim below was to speed it up by pre-initializing the synthesis so when we call speakIt() we don't have to wait for…
6
votes
1 answer

webkitSpeechRecognition is "lagging" behind when gathering results

Had an itch to try out the Web Speech API. I copied the code exactly from the article, and I'm having an issue where you speak, but nothing happens until you speak AGAIN. [Fiddle: http://jsfiddle.net/w75v2tm5/] JS: if (!('webkitSpeechRecognition' in…
RickyAYoder
  • 963
  • 1
  • 13
  • 29
5
votes
1 answer

speechSynthesis.getVoices (Web Speech API) doesn't show some of the locally installed voices

I'm trying to use Web Speech API to read text on my web page. But I found that some of the SAPI5 voices installed in my Windows 10 would not show up in the output of speechSynthesis.getVoices(), including the Microsoft Eva Mobile on Windows 10…
5
votes
0 answers

Web Speech Recognition on MediaStream

Calling SpeechRecognition.start automatically requests microphone permission, but is there any way to start SpeechRecognition on a custom MediaStream (e.g. from getDisplayMedia)?
5
votes
1 answer

Web Speech API not properly loading voices in Chrome for Android

I have a simple app that should read out text entered into an input field in a selected language: https://speech-synthesis-demo.glitch.me/ This seems to work well on desktop in multiple browsers. However, when I try to run it in Chrome for Android,…
scientiffic
  • 9,045
  • 18
  • 76
  • 149
5
votes
3 answers

Chinese text plays once with Web Speech API, but not a second time

So I am using a modified script to try to play some text from the Web Speech API. The code was originally here: Chrome Speech Synthesis with longer texts Here's my modified variant: function googleSpeech(text, rate) { if (!reading) { …
Steven Matthews
  • 9,705
  • 45
  • 126
  • 232
5
votes
1 answer

Use of Web Speech API in commercial application

I want to create a commercial web application based on speech recognition. I have found the Web Speech API (https://w3c.github.io/speech-api/) currently only supported by Chrome. Can I use this API for free for my commercial application? Is there a…
4
votes
1 answer

Web Speech api not working on android chrome

Web speech api (webkitSpeechRecognition) return 'not-allowed' error on android phone. (I gave Microphone permission to chrome app and site on android settings) Chrome on desktop is working. But, on android is not. (Test phone is Samsung Galaxy S9,…
1
2
3
14 15