Skip to content

Instantly share code, notes, and snippets.

@timdorr
Forked from wesbos/lol.js
Last active February 16, 2016 22:16
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 timdorr/3b307026450c1a92dfd5 to your computer and use it in GitHub Desktop.
Save timdorr/3b307026450c1a92dfd5 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.body.textContent;
this.speak(msg);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment