0

我尝试将 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"
4

1 回答 1

0

改变

Save as WAV file... "/Users/hgneng/Downloads/aa2.wav"

Save as WAV file: "/Users/hgneng/Downloads/aa2.wav"

将解决问题。

于 2016-08-04T09:33:44.887 回答