Skip to content

Instantly share code, notes, and snippets.

@pramttl
Created February 21, 2015 00:46
Show Gist options
  • Save pramttl/a41e338710cf049f86c3 to your computer and use it in GitHub Desktop.
Save pramttl/a41e338710cf049f86c3 to your computer and use it in GitHub Desktop.
Mac voices say Oregon State University
import os
voices = ['Agnes', 'Kathy', 'Princess', 'Vicki', 'Victoria',
'Alex', 'Bruce', 'Fred', 'Junior', 'Ralph', 'Albert',
'Bad News', 'Bahh', 'Bells', 'Boing', 'Bubbles', 'Cellos', 'Deranged',
'Good News', 'Hysterical', 'Pipe Organ', 'Trinoids', 'Whisper', 'Zarvox']
for voice in voices:
os.system('say -v %s "Oregon State University" '%(voice,))
@cezarywojcik
Copy link

Why not just bash:

for i in "Agnes" "Kathy" "Princess" "Vicki" "Victoria" "Alex" "Bruce" "Fred" "Junior" "Ralph" "Albert" "Bad News" "Bahh" "Bells" "Boing" "Bubbles" "Cellos" "Deranged" "Good News" "Hysterical" "Pipe Organ" "Trinoids" "Whisper" "Zarvox"
do
    say -v $i "Oregon State University"
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment