Skip to content

Instantly share code, notes, and snippets.

@clarkio
Last active June 12, 2020 18:48
Show Gist options
  • Save clarkio/a2979f821f0c4db00df8fb4cc3edc1fd to your computer and use it in GitHub Desktop.
Save clarkio/a2979f821f0c4db00df8fb4cc3edc1fd to your computer and use it in GitHub Desktop.
web browser text to speech example
var synth = window.speechSynthesis;
// to see how many and which voices you have available
console.log(synth.getVoices());
var utterThis = new SpeechSynthesisUtterance('Get good Brian');
synth.speak(utterThis);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment