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

Can we use the Web Speech API in Google Chrome to recognize speech coming from other sources than the user's microphone?

I would like to use the Web Speech API in Google Chrome to recognize speech coming from a HTML5
3
votes
0 answers

Web Speech API Audio to Variable

Is it possible to return the resulting audio from the Web Speech API (https://developers.google.com/web/updates/2014/01/Web-apps-that-talk-Introduction-to-the-Speech-Synthesis-API) to a variable that can be used via the Audio object? I.E. something…
nicktendo
  • 587
  • 1
  • 9
  • 24
3
votes
0 answers

Web Speech API has "Network Error"

I'm using Web Speech API to recognize user voice. Recently I meet the Error that I cannot recognize anything. Check the console on Chrome I get SpeechRecognitionError currentTarget: SpeechRecognition defaultPrevented: false error: "network" type:…
imrhung
  • 824
  • 1
  • 10
  • 20
3
votes
0 answers

Web Speech API: improve accuracy by a set of vocabulary

Can I improve the web speech api by setting some vocabulary for a specific application ?
Xsmael
  • 3,624
  • 7
  • 44
  • 60
3
votes
0 answers

Speech recognition listen to long

I need your help I have no idea how to fix my issue. I have app writen in ionic and I use annyang to Speech Recognition to listen what user said and response for that. It's working pretty good on web - using ionic serve, but when I run it on…
foczki
  • 125
  • 8
3
votes
3 answers

Web Speech API " Detecting known words"

I'm in the process of developing an app which can detect certain key words. I have been using googles web speech. I'm able to record the users voice and have it print out, but I want to be able to detect certain words. I can't seem to find a way…
ronoc4
  • 625
  • 2
  • 6
  • 21
3
votes
1 answer

Speaking words in an array

I have an array of words that I would like to say aloud using the Web Speech API. The words are one, two, three, four, five. When speaking the words on Chrome, the script below says the first word and then repeats the last word until the iteration…
matt.
  • 2,355
  • 5
  • 32
  • 43
3
votes
1 answer

How does webkitSpeechRecognition() work without an API key?

Every reverse engineering of the Google Speech API requires an API key but Chrome is able to call the server, seemingly without one. How does this work internally? Is it possible to use the API for any sort of large scale speech transcription?
knightian
  • 683
  • 1
  • 7
  • 20
3
votes
1 answer

Web Speech API: two utterances at same time

I'm using the Web Speech API and wondering if it is possible to have two instances of SpeechSynthesisUtterance() running at the same time such that the voices are layered on top of each other. Abbreviating my current code I essentially have two…
Spencer Pope
  • 455
  • 6
  • 23
3
votes
1 answer

Web Speech API - SpeechGrammar

So I was looking through the Web Speech API documentation, and I came across this https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-speechgrammar Is it possible to use a SpeechGrammar object as a dictionary of words that the…
3
votes
4 answers

Speech Synthesis API Volume, Rate, and Pitch don't work

Long story short, Speech Synthesis volume, rate, and pitch don't work. Is there anyone else having this issue and know how to resolve it, or am I alone? Long story longer: For me, Speech Synthesis volume, rate, and pitch don't work. Here is my…
Nathan
  • 1,321
  • 1
  • 18
  • 32
3
votes
1 answer

Test user's microphone usage permission status

What is the best way to know if the user has allowed microphone access after creating an instance of webkitSpeechRecognition? The first idea that came to my mind was using the webkitSpeechRecognition:onstart method to update a local status…
3
votes
0 answers

how to use the web speech api on mobile chrome

The web speech API currently works in Chrome, but I have been unable to get in to work in mobile chrome on the iPhone. I haven't been able to find any info on the net, as to whether there is a way to access the API on mobile, or whether it works on…
user1199178
  • 85
  • 1
  • 1
  • 6
3
votes
2 answers

Using Google Voice Recognition API in building an iOS application

I am developing an iOS application with voice recognition functionality. I found the way to use Google Web Speech API for voice recognition and text-to-speech purposes. It works fine. I am wondering if it is legal to use Google Web Speech API in an…
user2618662
  • 41
  • 1
  • 2
2
votes
0 answers

iOS web speech recognition.onresult issue

I am trying to code an 8th Wall web app which uses speech recognition. I am having a lot of inconsistencies in iOS from one iPhone model to another one, where in some of them the speech result seems to be taking up to 1 minute and in others it is…
Rocio
  • 21
  • 1