Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
up vote 7 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.

share|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
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 '12 at 21:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .