Skip to content

Instantly share code, notes, and snippets.

@shawnlknight
Created February 20, 2017 16:02
Show Gist options
  • Save shawnlknight/f46ad16539fcc27cc2c4e9f3f6d22760 to your computer and use it in GitHub Desktop.
Save shawnlknight/f46ad16539fcc27cc2c4e9f3f6d22760 to your computer and use it in GitHub Desktop.
Speech Synthesis
let say = new SpeechSynthesisUtterance('say');
let what = new SpeechSynthesisUtterance('what');
what.rate = 0.4;
what.pitch = 2;
speechSynthesis.speak(say);
speechSynthesis.speak(what);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment