Skip to content

Instantly share code, notes, and snippets.

@poteto
Created June 5, 2014 01:55
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 poteto/1069e1c0f1abac24912d to your computer and use it in GitHub Desktop.
Save poteto/1069e1c0f1abac24912d to your computer and use it in GitHub Desktop.
speechSynthesis.getVoices().forEach(function(voice) {
var name = voice.name,
speech = new SpeechSynthesisUtterance("Hello, my name is " + name);
speech.voice = voice;
speechSynthesis.speak(speech);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment