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
4
votes
2 answers

Web Speech API SpeechRecognition not defined when using React.js

I am using React.js along with the Web Speech API's SpeechRecognition, however, it does not work and I get the error "ReferenceError: SpeechRecognition is not defined." The code I am using is directly from the SpeechRecognition documentation: const…
4
votes
0 answers

Continue running WebApp with "Screen off/Background" on mobile devices

I am making a WebApp that uses WebSpeech API for Text to Speech. The problem I am facing is that whenever the screen goes off or browser window is switched, particularly on mobile devices, the speech synthesis is just stopped. When the text to be…
Yaksha
  • 153
  • 1
  • 6
4
votes
0 answers

Cannot set prototype of SpeechSynthesisVoice manually

This question is somewhat for understanding the prototype get-set. I've a scenario where I need to map the SpeechSynthesis supported voice to Google Translation API supported language codes. For example, Now, I can do the same by either fetching…
Gaurav Gupta
  • 873
  • 2
  • 8
  • 25
4
votes
0 answers

How do I get web speech api to recognise letters, postcodes and acronyms

I'm trying to get Web Speech api to recognize individual letters such as a postcode or vehicle registration e.g. MR32BDJ. Sometimes it will work however other times it will try and create a word. Is there way to tell speech api to only expect…
Alex
  • 913
  • 6
  • 9
4
votes
0 answers

Safari Web Speech API

I updated Safari to 11 beta on macOS Sierra (v10.12.6) searching for working Web Speech API, as https://developer.apple.com/safari/features/ mentioned the following: "Web Speech API Support for the Web Speech API, Safari can convert text to speech…
user3190360
  • 151
  • 1
  • 2
  • 7
4
votes
1 answer

Detect the time when the user talk SpeechRecognition API?

I am trying to detect when the user pauses and start talking again without stop recognizing. This is the code I set to detect when the user talks and output it to the page: //set up vars var final_transcript; var recognizing = false; //check if…
4
votes
2 answers

How do I set the default voice for SpeechSynthesisUtterance in Google Chrome?

I have a Javascript app that uses SpeechSynthesisUtterance for text to speech. On some browsers it uses the wrong voice (language). For example, on one browser whose language is set to English, the TTS ends up using a German voice. Is there a…
Ziffusion
  • 8,779
  • 4
  • 29
  • 57
4
votes
1 answer

SpeechSynthesisUtterance not working in mobile broswer

I am using SpeechSynthesisUtterance in my mobile website. This code is okay when I use it in my desktop version website. But I found that the function is not working in mobile browser in document.ready as below: $(document).ready(function(){ var…
TimLee
  • 183
  • 1
  • 2
  • 11
4
votes
1 answer

Web Speech API - Speech recognition in iOS

HTML5 has a new Speech recognition API and caniuse.com suggestes, Safari iOS 7.1 supports this API. But, I have tried it and its not working on iOS (iPhone 5S) with Safari 7.1 or MAC OS x safari 7.1. Is there any workaround to make it work on iOS…
Smitha
  • 6,110
  • 24
  • 90
  • 161
4
votes
2 answers

Google speech API - php does not return anything

My code is inspired by this php version of full duplex google speech API for speech-to-text : http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/ I have few flac files that do work and give the array output as explained on Mike's…
asmicapri
  • 83
  • 6
4
votes
1 answer

Chrome speech API network error

I'm trying to create a PHP web application using Chrome web speech API. I'm always getting network errors. But, I have a good network connection. window.SpeechRecognition = window.SpeechRecognition ||…
pearl
  • 41
  • 5
4
votes
1 answer

voiceschanged event not fired in Safari

As far as I can tell, the voiceschanged event doesn't fire in Safari, either on macs or in iOS. Also odd, it doesn't seem to fire in Chrome on iOS either, but I'm assuming Chrome on iOS uses the same JavaScript engine as Safari. Here's a…
Asmor
  • 5,043
  • 6
  • 32
  • 42
4
votes
1 answer

Is Web Speech API Grammar exposed to developers?

I am currently doing some RnD on Webkit Speech Recognition and I wanted to create an application specific grammar file. According W3C definition I wrote the following code. But it doesnt seem to show improved results in recognition for these words.…
3
votes
1 answer

Does the Web Speech API in Chrome (and Edge) use an offsite server for STT?

Recently I found the Web Speech API as well as a simple HTML/JS speech-to-text example from Google. I started playing with the API and made changes to the JS and HTML in the example above to see how it performed. There does not appear to be any…
KJ7LNW
  • 1,437
  • 5
  • 11
3
votes
2 answers

iOS 16 Poor SpeechSynthesisUtterance voice quality

since iOS 16 update my vocabulary app (PWA) has problems with spelling provided text to SpeechSynthesisUtterance object. It doesn't apply to all languages, eg. Russian sounds the same like before update to iOS 16. If it comes to German or English -…
chudy91
  • 408
  • 3
  • 18
1 2
3
14 15