Open WYan123 opened 3 years ago
This is running a command to change the contents of raw lab features from Festival, simply replacing #
with pau
which is the preferred symbol for pauses. A lot can go wrong with calling command line tools like this, e.g. if sed
or festival
isn't installed it will break, or If you run multiple times without cleaning stuff up things could go wrong.
I'd recommend changing that subprocess call to a print statement, then you can copy the command that is failing. Then you can test it in a command prompt.
Excuse me when I run utt_to_lab.py The first run was successful, but the second one was wrong
File "/home/桌面/2019tts/tts_data_tools-master/tts_data_tools/lab_gen/utt_to_lab.py", line 97, in utts_to_dumps *glob.glob('label_POS_train/label_phone_align/dump/*')], check=True) File "/home/anaconda3/envs/pytorch/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['sed', '-i', '-e', 's/#/pau/g']' returned non-zero exit status 4.