Skip to content

Instantly share code, notes, and snippets.

@Kwpolska
Created February 18, 2017 13:54
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 Kwpolska/c95ecc31a9cfb56ca7ab2ba527f271bc to your computer and use it in GitHub Desktop.
Save Kwpolska/c95ecc31a9cfb56ca7ab2ba527f271bc to your computer and use it in GitHub Desktop.
Text to Speech service
-- USAGE: create an Automator service that receives selected text and put this in "Run AppleScript"
on run {input, parameters}
choose from list {"Alex", "Daniel", "Ewa", "Samantha", "Serena", "Thomas", "Zosia", "Bad News", "Good News", "Pipe Organ"} with prompt "Choose voice:" without multiple selections allowed and empty selection allowed
set voice to the result as string
say input using voice
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment