A script to convert text to a spoken AIFF file

Dec 19, '02 09:45:23AM

Contributed by: Anonymous

Here is a (free) way to save spoken text in an AIFF file. Paste the following AppleScript into Script Editor and save as an application:

say (text returned of (display dialog ¬
"Enter what you would like synthesized into a file." default answer ¬
"Welcome to Mac OS X.")) saving to (choose file name with prompt ¬
"Choose where you would like to to save the file." default name "say.aiff")
It will first ask you what you want synthesized and then where you would like to save the file to. Note that a generated five minute synthesized file will not need to take five minues to save. It will not play the spoken text, and instead just build the spoken text into the saved file instantly.

[Editor's note: I tested this script and it works as expected ... but if you've got iTunes set to add things to the library automatically, don't forget that it happily adds AIFF files as well as MP3s ... not that I'd ever do anything like that!]

Comments (9)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20021219064523213