Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on say when output format is wave

I am trying to create wave files using mac's say command, however, I get the following error:

$ say "hello" -o hi.wav

Opening output file failed: fmt?

although,

$ say --file-format=?

WAVE WAVE (.wav) [lpcm,ulaw,alaw]

Is there some way I can get say to output a wave file?

like image 773
simbara Avatar asked Mar 15 '12 22:03

simbara


1 Answers

It infers the file format from the file extension, but you need to specify the data format:

say -o hi.wav --data-format=LEF32@22050 "hello"
like image 117
Gordon Davisson Avatar answered Oct 29 '22 11:10

Gordon Davisson