Skip to content

Instantly share code, notes, and snippets.

@ryanmorr
Last active January 16, 2024 07:45
Show Gist options
  • Save ryanmorr/154b39d90860925e7e869a5c0d2e0470 to your computer and use it in GitHub Desktop.
Save ryanmorr/154b39d90860925e7e869a5c0d2e0470 to your computer and use it in GitHub Desktop.
JavaScript can talk
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