Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 mac 的 say 命令创建波形文件,但是,我收到以下错误:
$ 说“你好” -o hi.wav 打开输出文件失败:fmt?
$ 说“你好” -o hi.wav
打开输出文件失败:fmt?
虽然,
$ 说 --file-format=? WAVE WAVE (.wav) [lpcm,ulaw,alaw]
$ 说 --file-format=?
WAVE WAVE (.wav) [lpcm,ulaw,alaw]
有什么方法可以让我输出波形文件吗?
它从文件扩展名推断文件格式,但您需要指定数据格式:
say -o hi.wav --data-format=LEF32@22050 "hello"