我尝试将一个praat声音对象保存到wav文件中。在GUI中执行此操作时没有问题。但它在脚本中抱怨“声音没有连接而且没有保存”。有谁知道为什么?
这是命令行输出:
~/Downloads$ /Applications/Praat.app/Contents/MacOS/Praat --run aa1.praat
Error: Cannot create file “/Users/hgneng/Downloads/"/Users/hgneng/Downloads/aa2.wav"”.
Sounds not concatenated and not saved to “/Users/hgneng/Downloads/"/Users/hgneng/Downloads/aa2.wav"”.
Script line 15 not performed or completed:
« Save as WAV file... "/Users/hgneng/Downloads/aa2.wav" »
Script “/Users/hgneng/Downloads/aa1.praat” not completed.
Praat: script command <<aa1.praat>> not completed.
以下是praat脚本的内容:
sound = Read from file: "/Users/hgneng/e-guidedog/jyutping-wong/aa1.wav"
endtime = Get end time
To Manipulation... 0.01 75 600
selectObject: sound
Create DurationTier: "aa1", 0, endtime
Add point: 0, 3
selectObject: "Manipulation aa1"
plusObject: "DurationTier aa1"
Replace duration tier
minusObject: "DurationTier aa1"
Get resynthesis (overlap-add)
removeObject: sound
removeObject: "Manipulation aa1"
removeObject: "DurationTier aa1"
Save as WAV file... "/Users/hgneng/Downloads/aa2.wav"
答案 0 :(得分:0)
更改
Save as WAV file: "/Users/hgneng/Downloads/aa2.wav"
到
{{1}}
将解决问题。