Skip to content

Instantly share code, notes, and snippets.

@umaar
Forked from wesbos/lol.js
Created February 17, 2016 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umaar/fb7a2573a67fd4353fb9 to your computer and use it in GitHub Desktop.
Save umaar/fb7a2573a67fd4353fb9 to your computer and use it in GitHub Desktop.
// 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);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment