Re:Jarvis: an Amazon Echo clone in your browser
by monteslu on Thursday April 21, 2016 @02:02PM
(#11544114)
The source for pagenodes is here: https://github.com/monteslu/pagenodes and you can look at src/editor/nodeDefs/core/espeak.js as an example.
Also MDN has some pretty good documentation on the WebSpeech API https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_...
Re:Jarvis: an Amazon Echo clone in your browser
by warbrett on Thursday April 21, 2016 @02:01PM
(#11544106)
This might help you: https://github.com/monteslu/pagenodes/blob/7388ce58726836cf6...
Re:Jarvis: an Amazon Echo clone in your browser
by verst on Monday April 25, 2016 @06:33PM
(#11567935)
Super helpful. Thanks!
In Chrome the following works as a basic sample:
speech = new SpeechSynthesisUtterance(String("生日快乐"))
voice = speechSynthesis.getVoices()[80] // use Google Chinese Voice
speech.voice = voice
speechSynthesis.speak(speech)
I was able to use them on PageNodes via the "espeak" output just fine, but would like to use them directly in my own apps.