I wonder if there is an easy way to record the audio while a text is been read by my Mac using the built-in text-to-speech menu item of the text editor (TextEdit) of Mac OS X ?

link|improve this question

feedback

1 Answer

up vote 5 down vote accepted

Try to execute the following in a terminal:

say -o ~/Desktop/say.aiff  "Hello. I'm a Mac"

That will save the spoken text "Hello. I'm a Mac" to ~/Desktop/say.aiff. See the manpage of say (execute man say in a terminal) for more information and other file formats. You can also easily convert the .aiff-File to an mp3 with iTunes or a console based encoder like lame.

link|improve this answer
You can also substitute the "Hello. I'm a Mac" for any text file – trolle3000 Aug 17 '10 at 12:03
... and I personally recommend adding -v Zarvox as the first option in the above command ;-) – trolle3000 Aug 17 '10 at 12:04
1  
substituting the String with a textfile won't work (or did you mean to substitute with the contents of said file?). But you can do this: cat textfile.txt | say -o ~/Desktop/say.aiff . It will make "say" speak the contents of textfil.txt and output it to say.aif. – lajuette Aug 17 '10 at 12:20
my mistake. You can use say -f /path/to/file/file.txt – trolle3000 Aug 23 '10 at 4:00
You can write say -v ? to display a list of all available voices on your system. – Claudio Poli Apr 26 at 21:10
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.