Skip to content

Instantly share code, notes, and snippets.

@LewisGet
Created July 20, 2016 07:54
Show Gist options
  • Save LewisGet/3ff17fb945f9e565c9546d77bba91518 to your computer and use it in GitHub Desktop.
Save LewisGet/3ff17fb945f9e565c9546d77bba91518 to your computer and use it in GitHub Desktop.
var msg = new SpeechSynthesisUtterance('Hello World');
window.speechSynthesis.speak(msg);
voices = speechSynthesis.getVoices();
msg.voice = voices[index];
window.speechSynthesis.speak(msg);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment