Skip to content

Instantly share code, notes, and snippets.

@bagwanpankaj
Forked from wesbos/lol.js
Created February 18, 2016 12:58
Show Gist options
  • Select an option

  • Save bagwanpankaj/8cfbed36406d271199aa to your computer and use it in GitHub Desktop.

Select an option

Save bagwanpankaj/8cfbed36406d271199aa to your computer and use it in GitHub Desktop.

Revisions

  1. @wesbos wesbos revised this gist Feb 16, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion lol.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    // 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);
    };
    };
  2. @wesbos wesbos created this gist Feb 16, 2016.
    6 changes: 6 additions & 0 deletions lol.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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);
    };