Wednesday, February 2, 2011

PSP Text to Speech using Mac OS

Launch your Terminal (located in /Applications/Utilities/). Now, assuming the text file that you want to convert is called text.txt and is located on your Desktop, at the command line, type the following:

sayf ~/Desktop/text.txto ~/Desktop/text.aiff

This string will read the text.txt file on your Desktop to a new AIFF file on your Desktop called text.aiff, using the default System voice settings you have defined in the "Text to Speech" section of your Speech control panel (System>Preferences >Speech Text to Speech).

Unfortunately, when I say that the say command will read your text file to an AIFF file, I'm being literal. You won't hear it, but the process will happen in real time. If you are converting a long piece of text to audio, be ready to leave your computer running and do something else for a good half hour or more.

No comments:

Post a Comment