MacOS – How to save text to speech as a voice recording

bashmacosspeechtext to speechzsh

say "Hello World"

is pretty neato, but it requires the terminal to stay open. Is there a nice way to save the recording from what a "say" would output as a file?

Best Answer

To save to a file use, the -o <file name> option.

$ say “Hello World” -o helloworld.aiff