Last active
June 12, 2020 18:48
-
-
Save clarkio/a2979f821f0c4db00df8fb4cc3edc1fd to your computer and use it in GitHub Desktop.
web browser text to speech example
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
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