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

Speech using the say command can be recorded like this:

say -o hello.aiff 'hello world'

What other formats are supported besides aiff? I already tried wav and mp3, and they don't work.

share|improve this question
up vote 2 down vote accepted

According to man say, the supported file formats are

--file-format=format

The format of the file to write (AIFF, caff, m4af, WAVE). Generally, it's easier to specify a suitable file extension for the output file.

.wav doesn't work since it needs to be written as .wave. No DOS 8.3 restriction here.

It is also possible to specify the data format. See man say for additional information.

share|improve this answer
    
It seems to create a wave file but it won't play in iTunes. – Phenom Oct 16 '10 at 6:58
1  
@Phenom: This is a limitation of iTunes / Mac OS X. I also was unable to create a WAVE file that was playable by Get Info preview/QuickLook, but I could play it just fine using the Switch Sound File Converter. – Daniel Beck Oct 16 '10 at 7:35

You must log in to answer this question.

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