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
62
votes
13 answers

Getting the list of voices in speechSynthesis (Web Speech API)

Following HTML shows empty array in console on first click:
Mehdi
  • 4,202
  • 5
  • 20
  • 36
26
votes
1 answer

SpeechSynthesis.speak (in Web Speech API) always stops after a few seconds in Google Chrome

When using the speak function in the Web Speech API, in Chrome the speaking stops abruptly after a few seconds, in the middle of the text given to it, in a seemingly random place (without reaching the end). This only happens in Chrome (works well on…
23
votes
1 answer

Disable profanity filter for recognition via Web Speech API

I am using webkitSpeechRecognition instance to access the native speech recognition in Chrome. The problem is that the Web Speech API specification does not cover the topic of profanity filtering, yet Google's Speech API, by default, has the…
Xeos
  • 5,975
  • 11
  • 50
  • 79
22
votes
2 answers

How to capture generated audio from window.speechSynthesis.speak() call?

Previous questions have presented this same or similar inquiry Can Web Speech API used in conjunction with Web Audio API? How to access audio result from Speech Synthesis API? Record HTML5 SpeechSynthesisUtterance generated speech to file generate…
guest271314
  • 1
  • 15
  • 104
  • 177
22
votes
2 answers

How to use Web Speech API at chromium?

How to use SpeechSynthesisUtterance() and window.speechSynthesis.speak() at chromium browser? var msg = new SpeechSynthesisUtterance( "Hello I am browser" ); window.speechSynthesis.speak( msg ); yields no output at system speakers. Issues with the…
guest271314
  • 1
  • 15
  • 104
  • 177
20
votes
6 answers

speechSynthesis.speak not working in chrome

I'm using chrome Version 55.0.2883.87 m (64-bit) on Windows 10. The following simple html file reproduces the problem and is extracted from my more complex app. It is supposed to speak the 3 words on page load. It works on MS Edge and Firefox but…
Zach Fewtrell
  • 473
  • 1
  • 3
  • 9
19
votes
2 answers

Different between Google Speech API and Web Speech API

I am working on web speech recognition. And I found that Google provide a API which call "Google speech API V2" to developer. But I notice there is a limit on every day to use it. After that I found there is a native WEB Speech API also can…
Kim Wong
  • 2,027
  • 4
  • 17
  • 22
19
votes
4 answers

The right way to use SSML with Web Speech API

Web Speech API specification says: text attribute This attribute specifies the text to be synthesized and spoken for this utterance. This may be either plain text or a complete, well-formed SSML document. For speech synthesis engines that…
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
16
votes
2 answers

The effect of the grammar in the Web Speech API

In examples for the Web Speech API, a grammar is always specified. For example, in MDN's colour change example, the grammar is: #JSGF V1.0; grammar colors; public = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral |…
Migwell
  • 18,631
  • 21
  • 91
  • 160
16
votes
4 answers

Angular2: Web Speech API - Voice recognition

After reading the documentation of webkitSpeechRecognition (voice recognition in Javascript) I tried to implement it in Angular 2. But when I did this: const recognition = new webkitSpeechRecognition(); TypeScript say this error: [ts] Cannot find…
15
votes
2 answers

How to implement Mozilla DeepSpeech into PHP web app to convert Speech-to-text?

I have a PHP web application and am looking for an open source, high-accuracy speech-to-text recognition implementation that will take voice commands to open web pages from users. Examples: "Make Sales" (this will open Create Sales PHP page), "Make…
15
votes
2 answers

What are the supported languages for Web Speech API in HTML5?

I want to see what languages are supported by web speech API and try to contribute and add other languages.
Omer N Omer
  • 163
  • 1
  • 5
14
votes
2 answers

How do I add a voice / language to speechSynthesis?

When I run speechSynthesis.getVoices() in Chrome, I get a list of possible voices. The list changes depending on the computer and version of Chrome. Is there any way I can extend support and add more voices? I feel like this could be done by asking…
12
votes
3 answers

Web speech API stops listening after some time passes without input

I'm using the web speech API but once a bit of time passes by (a minute or 2) without any vocal input, it stops listening entirely. I know this because I have it log its parsed text to the console, however, it stops doing this when I do not talk for…
10
votes
4 answers

Speech gets cut off in firefox when page is auto-refreshed but not in google chrome

I have this problem where in firefox the speech gets cut off if the page is auto-refreshed, but in google chrome it finishes saying the speech even if the page is auto-refreshed. How do I fix it so that the speech doesn't get cut off in firefox even…
frosty
  • 2,559
  • 8
  • 37
  • 73
1
2 3
14 15