Which file formats does recording text-to-speech in OS X support?

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.

Phenom

Posted 2010-10-16T06:33:41.093

Reputation: 6 119

Answers

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.

Daniel Beck

Posted 2010-10-16T06:33:41.093

Reputation: 98 421

It seems to create a wave file but it won't play in iTunes. – Phenom – 2010-10-16T06:58:19.270

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 – 2010-10-16T07:35:12.503