News for hackers. Stuff that matters.
Re:Jarvis: an Amazon Echo clone in your browser by verst on Thursday April 21, 2016 @02:00PM (#11544098)
Does anyone know how the Google TTS voices in the example are exposed by Google? Is there an API / service for these? I haven't been able to find it.

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.

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)
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)