Skip to content

Instantly share code, notes, and snippets.

@nizur
Created June 4, 2014 21:31
Show Gist options
  • Save nizur/0137f00884378a29e0ec to your computer and use it in GitHub Desktop.
Save nizur/0137f00884378a29e0ec to your computer and use it in GitHub Desktop.
Run this as a snippet in your browser to hear it speak
speechSynthesis.getVoices().forEach(function(voice) {
var name = voice.name,
speech = new SpeechSynthesisUtterance("Hello, my name is " + name);
speech.voice = voice;
speechSynthesis.speak(speech);
});
@nizur
Copy link
Author

nizur commented Jun 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment