Created
September 19, 2016 15:09
-
-
Save seanbehan/bac06e07d5992f30295999c2f40a3005 to your computer and use it in GitHub Desktop.
text to speech with JavaScript
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
var text = document.getElementById('#textForSpeech') | |
var msg = new SpeechSynthesisUtterance(text) | |
window.speechSynthesis.speak(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment