webspeech-api

SpeechRecognition is not working in firefox

試著忘記壹切 提交于 2020-01-22 22:22:03
问题 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 about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to

SpeechRecognition is not working in firefox

☆樱花仙子☆ 提交于 2020-01-22 22:21:48
问题 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 about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to

SpeechRecognition is not working in firefox

混江龙づ霸主 提交于 2020-01-22 22:21:18
问题 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 about:config. Is there a way to make SpeechRecognition work on firefox? 回答1: According to this blog post from January 21, 2016 by Chris Mills (a senior tech writer at Mozilla) you can't use it yet in web environment on FF ... ... because the UX/UI to

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

只愿长相守 提交于 2020-01-21 10:52:47
问题 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

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

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 10:52:10
问题 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

Speech recognition listen to long

雨燕双飞 提交于 2020-01-04 03:48:09
问题 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 android device voice recognition take a long of time from 30s to couple of minutes - I just say one word for example "shop". It's any way to decrease this time? Or can i set any of timeout? I'll appreciate any help. Thanks. Edit: code look like //response

Angular2: Web Speech API - Voice recognition

怎甘沉沦 提交于 2020-01-02 00:56:08
问题 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 name 'webkitSpeechRecognition'. any And if I try to extract webkitSpeechRecognition from window : if ('webkitSpeechRecognition' in window) { console.log("Enters inside the condition"); // => It's printing const { webkitSpeechRecognition } = window;

voiceschanged event not fired in Safari

醉酒当歌 提交于 2019-12-24 04:57:29
问题 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 demonstration that I used to verify: http://jsbin.com/gosaqihi/9/edit?js,console (taken from Getting the list of voices in speechSynthesis of Chrome (Web Speech API)) I've also tried it using addEventListener: speechSynthesis.addEventListener("voiceschanged",

SpeechSynthesisUtterance not working in mobile broswer

时光毁灭记忆、已成空白 提交于 2019-12-23 15:12:24
问题 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 text_tts="say something"; speakText(text_tts); }); function speakText(text_tts){ var u = new SpeechSynthesisUtterance(); u.text = text_tts; u.lang = 'en-US'; u.rate = 1; u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + '

web speech api - speech synthesis .lang property not working

本秂侑毒 提交于 2019-12-20 05:22:22
问题 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> 回答1: