Auto generate speech files

Building the new version of Dark Nova required me to generate a lot of audio (aiff) files containing speech for varios commands and events. You can use the Mac’s built-in “say” command to do this automatically. I wrote a script to create an .aiff file for every phrase in a list of phrases. It works great and uses the default system voice as set in the System Preferences under Speech.

Here’s the simple script:

cat commands | while read LINE
do say "$LINE" -o "$LINE.aiff"
done

Sorry, the comment form is closed at this time.