Created
December 12, 2014 12:22
-
-
Save andy-polhill/986272c2dc507d99c938 to your computer and use it in GitHub Desktop.
Chrome & Safari random voice speech bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
var newUtterance = new SpeechSynthesisUtterance(), | |
voices = window.speechSynthesis.getVoices(); | |
newUtterance.text = window.prompt("Say", ""); | |
newUtterance.voice = voices[Math.floor(Math.random() * voices.length)]; | |
window.speechSynthesis.speak(newUtterance); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Everyone loves a bit of friday fun, speech bookmarklet, picks a random voice and says what you tell it.