Skip to content

Instantly share code, notes, and snippets.

@adamfortuna
Forked from wesbos/lol.js
Last active February 18, 2016 01:29
Show Gist options
  • Save adamfortuna/6884fe915b2da40afcb8 to your computer and use it in GitHub Desktop.
Save adamfortuna/6884fe915b2da40afcb8 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 = document.getElementsByTagName('body')[0].textContent;
this.speak(msg);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment