Last active
January 16, 2024 07:45
-
-
Save ryanmorr/154b39d90860925e7e869a5c0d2e0470 to your computer and use it in GitHub Desktop.
JavaScript can talk
This file contains 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
const msg = new SpeechSynthesisUtterance(); | |
msg.voiceURI = 'native'; | |
msg.text = 'Hello World'; | |
msg.lang = 'en-US'; | |
speechSynthesis.speak(msg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment