From a8252c414939dde04672ec39ee7490a82994be95 Mon Sep 17 00:00:00 2001 From: nyx-c-language Date: Fri, 14 Mar 2025 20:44:22 +0800 Subject: [PATCH] =?UTF-8?q?run.sh=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=B8=BA=20sy?= =?UTF-8?q?nthesize=20=E5=92=8C=20synthesize=5Fe2e=20=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?--stage=20=E5=8F=82=E6=95=B0=E6=8E=A7=E5=88=B6=20vocoder=20?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=80=89=E6=8B=A9=EF=BC=8CREAMDE.md=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=9A=E8=A1=A5=E5=85=85=20stage=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=98=8E=E7=A1=AE=20vocode?= =?UTF-8?q?r=20=E9=80=89=E6=8B=A9=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/canton/tts3/README.md | 1 + examples/canton/tts3/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/canton/tts3/README.md b/examples/canton/tts3/README.md index 87ef40907..d2c46f642 100644 --- a/examples/canton/tts3/README.md +++ b/examples/canton/tts3/README.md @@ -37,6 +37,7 @@ Run the command below to 3. train the model. 4. synthesize wavs. - synthesize waveform from `metadata.jsonl`. + - `--stage` controls the vocoder model during synthesis (0 = pwgan, 1 = hifigan). - synthesize waveform from text file. ```bash ./run.sh diff --git a/examples/canton/tts3/run.sh b/examples/canton/tts3/run.sh index acfc50223..29502a964 100755 --- a/examples/canton/tts3/run.sh +++ b/examples/canton/tts3/run.sh @@ -29,12 +29,12 @@ fi if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then # synthesize, vocoder is pwgan by default - CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1 + CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1 fi if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then # synthesize_e2e, vocoder is pwgan by default - CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1 + CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1 fi if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then