Skip to content

Instantly share code, notes, and snippets.

@danechitoaie
Forked from wesbos/lol.js
Created February 17, 2016 22:39
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 danechitoaie/b8b6a0a5d8e3fb748f01 to your computer and use it in GitHub Desktop.
Save danechitoaie/b8b6a0a5d8e3fb748f01 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