Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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