Last active
July 20, 2022 18:13
-
-
Save wesbos/cd16b8b1815825f111a2 to your computer and use it in GitHub Desktop.
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
// paste in your console | |
speechSynthesis.onvoiceschanged = function() { | |
var msg = new SpeechSynthesisUtterance(); | |
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
msg.text = Object.keys(window).join(' '); | |
this.speak(msg); | |
}; |
Wow 👍
Love it!
Awesome!!
I really hope I wasn't the last one to find out this! Amazing 🎉
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its not working in Linux
window.speechSynthesis.getVoices()
returns empty array no "voices" :(