webspeech-api

Different between Google Speech API and Web Speech API

ぐ巨炮叔叔 提交于 2019-12-03 16:17:12
问题 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 implement the speech recognition. And it just working on google chrome and opera: http://caniuse.com/#feat=speech-recognition So 1. What is the different Google Speech API and Web Speech API? Are they have any relations? The speech recognition result json

The right way to use SSML with Web Speech API

我是研究僧i 提交于 2019-12-03 11:25:37
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 do not support SSML, or only support certain tags, the user agent or speech engine must strip away the tags they do not support and speak the text. It does not provide an example of using text with an SSML document. I tried the following in Chrome 33: var msg = new SpeechSynthesisUtterance(); msg.text = '<?xml version="1.0"?>\r\n<speak version="1.0" xmlns=

Different between Google Speech API and Web Speech API

家住魔仙堡 提交于 2019-12-03 05:25:27
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 implement the speech recognition. And it just working on google chrome and opera: http://caniuse.com/#feat=speech-recognition So 1. What is the different Google Speech API and Web Speech API? Are they have any relations? The speech recognition result json is return from google. Is that the google speech api will be more accurate than web speech api? Thank

web speech api - speech synthesis .lang property not working

ε祈祈猫儿з 提交于 2019-12-02 05:16:43
im trying to use web speech api to transcript a word in Portuguese, i set the property to 'pt-BR' ( unfortunately Portuguese - european is not supported) but, always replies in english. Can someone help? Thanks code: <script type="text/javascript"> var synth = window.speechSynthesis; function falatarea(){ var utteranceY = new SpeechSynthesisUtterance(); utteranceY.text = "teste"; utteranceY.lang = "pt-BR"; utteranceY.voice = "pt-BR"; window.speechSynthesis.speak(utteranceY); } </script> Seems like Chrome broke recently. I had code working, now its not. https://code.google.com/p/chromium/issues

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

China☆狼群 提交于 2019-12-01 15:19:01
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 Firefox), tested on two different computers/systems. Have a look at this jsfiddle to see/listen: https://jsfiddle.net/fv9ochpq/ You can see that the SpeechSynthesis object .speaking flag stays on(true) after it stops speaking. I haven't seen any documented limit to the text passed to the utterance. Is this a Google Chrome bug? BTW, I've known about

webkitSpeechRecognition is “lagging” behind when gathering results

限于喜欢 提交于 2019-12-01 04:08:26
问题 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 window)) { //handle error stuff here... } else { var recognition = new webkitSpeechRecognition(); recognition.continuous = true; recognition.interimResults = false; recognition.start(); var final_transcript = ''; recognition.onresult = function

generate audio file with W3C Web Speech API

好久不见. 提交于 2019-11-30 08:52:49
问题 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 3")) but I want sound generated with it not to be output to speakers but to file. 回答1: The requirement is not possible using Web Speech API alone, see Re: MediaStream, ArrayBuffer, Blob audio result from speak() for recording?, How to implement option

Is Web Speech API Grammar exposed to developers?

☆樱花仙子☆ 提交于 2019-11-29 23:19:38
问题 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. Can you kindly provide some help with this.? var recognition = new webkitSpeechRecognition(); recognition.grammars.addFromUri("voice/api_grammar/weight.grxml"); The grammar file is a simple file which looked like the following. <?xml version="1.0"

generate audio file with W3C Web Speech API

廉价感情. 提交于 2019-11-29 07:58:55
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 3")) but I want sound generated with it not to be output to speakers but to file. The requirement is not possible using Web Speech API alone, see Re: MediaStream, ArrayBuffer, Blob audio result from speak() for recording? , How to implement option to return Blob, ArrayBuffer, or AudioBuffer from window.speechSynthesis.speak() call Though requirement is

How to use Web Speech API at chromium?

家住魔仙堡 提交于 2019-11-27 08:54:58
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 API have bee noted The HTML5 SpeechSynthesis API is rubbish ; var voices = window.speechSynthesis.getVoices(); logs an empty array for voices identifier; and only chrome not chromium purportedly support Web Speech API Specification , the Web Speech API Demonstration sets value of html element at demonstration to utterance voiced when microphone is