Created
January 11, 2019 21:29
-
-
Save BideoWego/7fbc2865cb3cf849d6726a66ebcc0ba2 to your computer and use it in GitHub Desktop.
Say something with speech synthesis in the browser or compatible JS APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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