Skip to content

Instantly share code, notes, and snippets.

@BideoWego
Created January 11, 2019 21:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BideoWego/7fbc2865cb3cf849d6726a66ebcc0ba2 to your computer and use it in GitHub Desktop.
Save BideoWego/7fbc2865cb3cf849d6726a66ebcc0ba2 to your computer and use it in GitHub Desktop.
Say something with speech synthesis in the browser or compatible JS APIs
function say(phrase) {
speechSynthesis.speak(new SpeechSynthesisUtterance(phrase));
}
// Ex.
say('Happy Friday :)');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment