Perl one-liner to sample your Mac’s voices
Posted on | March 9, 2010 | No Comments
I've been following stories about Roger Ebert's new voice, which a company has made so that they can apparently plug it into his Mac. In his appearances on camera, the voice he's been using is the Mac "Alex" voice. What other voices does your Mac have? Here's a Perl one-liner to play them.
From the Terminal window, paste this in at the prompt:
perl -le'for (@ARGV){m{/(\w+?)\.SpeechVoice};' \
-e'$_=$1;s/([a-z])([A-Z])/$1 $2/g;' \
-e'print qq{say -v "$_" This is $_};}' \
/System/Library/Speech/Voices/* | sh -x
On my Mac, "Organ" isn't found, but I don't know why.
Category: Planet
Comments
Leave a Reply
Warning: include(/home/remarkwit/enterpriselamp.org/wp-content/themes/Enterprise_LAMP/r_sidebar.php) [function.include]: failed to open stream: No such file or directory in /home/remarkwit/enterpriselamp.org/wp-content/themes/Enterprise_LAMP/index.php on line 36
Warning: include() [function.include]: Failed opening '/home/remarkwit/enterpriselamp.org/wp-content/themes/Enterprise_LAMP/r_sidebar.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/remarkwit/enterpriselamp.org/wp-content/themes/Enterprise_LAMP/index.php on line 36