This a simple text to speech library for OSX, it has two commands:
speak(string,rate)
String is the string that you wish to be spoken; Rate is in words per minute and is an integer
export(string,rate,filename)
This command exports the String is the string that you wish to be spoken; Rate is in words per minute and is an integer; Filename is where you want the file to be saved (most voices support aiff)