Skip to content

Instantly share code, notes, and snippets.

@napolux
Last active July 7, 2016 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save napolux/306a02e8da41d9ae2478df9d67d530b0 to your computer and use it in GitHub Desktop.
Save napolux/306a02e8da41d9ae2478df9d67d530b0 to your computer and use it in GitHub Desktop.
speechSynthesis API for Google Chrome
var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voiceURI = "native";
msg.text = "hello world";
msg.lang = "en-US";
window.speechSynthesis.speak(msg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment