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.

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

1 Answer 1

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

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.