0

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.

1 Answer 1

2

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.

2
  • It seems to create a wave file but it won't play in iTunes.
    – Phenom
    Oct 16, 2010 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, 2010 at 7:35

You must log in to answer this question.

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