Skip to content

Commit ca03f4d

Browse files
authored
【PaddleSpeech No.6】补全合成系列中的脚本中参数缺失 (#4004)
* run.sh修改:为 synthesize 和 synthesize_e2e 添加 --stage 参数控制 vocoder 模型选择,REAMDE.md修改:补充 stage 参数说明,明确 vocoder 选择逻辑 * 添加run.sh中stage参数相关的注释 * HiFiGAN改为MultiBand MelGAN * cmsc文件改回原位(No.15不修改),这里只对No.6做修改
1 parent f357ec6 commit ca03f4d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/canton/tts3/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Run the command below to
3737
3. train the model.
3838
4. synthesize wavs.
3939
- synthesize waveform from `metadata.jsonl`.
40+
- `--stage` controls the vocoder model during synthesis (0 = pwgan, 1 = hifigan).
4041
- synthesize waveform from text file.
4142
```bash
4243
./run.sh

examples/canton/tts3/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
2828
fi
2929

3030
if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
31-
# synthesize, vocoder is pwgan by default
32-
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
31+
# synthesize, vocoder is pwgan by default stage 0, stage 1 will use hifigan as vocoder
32+
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
3333
fi
3434

3535
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
36-
# synthesize_e2e, vocoder is pwgan by default
37-
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
36+
# synthesize_e2e, vocoder is pwgan by default stage 0, stage 1 will use hifigan as vocoder
37+
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
3838
fi
3939

4040
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then

0 commit comments

Comments
 (0)