Skip to content

Commit 9c01a0b

Browse files
authored
【Doc】补全合成系列中的脚本中参数缺失 No.4 (#3998)
* fix * CI
1 parent 45f439a commit 9c01a0b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

examples/aishell3/tts3/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ pwg_aishell3_ckpt_0.5
109109
```
110110
`./local/synthesize.sh` calls `${BIN_DIR}/../synthesize.py`, which can synthesize waveform from `metadata.jsonl`.
111111
```bash
112-
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh ${conf_path} ${train_output_path} ${ckpt_name}
112+
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name}
113113
```
114+
`--stage` controls the vocoder model during synthesis, which can be `0` or `1`, use `pwgan` or `hifigan` model as vocoder.
114115
```text
115116
usage: synthesize.py [-h]
116117
[--am {speedyspeech_csmsc,fastspeech2_csmsc,fastspeech2_ljspeech,fastspeech2_aishell3,fastspeech2_vctk,tacotron2_csmsc,tacotron2_ljspeech,tacotron2_aishell3}]
@@ -157,8 +158,9 @@ optional arguments:
157158
```
158159
`./local/synthesize_e2e.sh` calls `${BIN_DIR}/../synthesize_e2e.py`, which can synthesize waveform from text file.
159160
```bash
160-
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh ${conf_path} ${train_output_path} ${ckpt_name}
161+
CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name}
161162
```
163+
`--stage` controls the vocoder model during synthesis, which can be `0` or `1`, use `pwgan` or `hifigan` model as vocoder.
162164
```text
163165
usage: synthesize_e2e.py [-h]
164166
[--am {speedyspeech_csmsc,speedyspeech_aishell3,fastspeech2_csmsc,fastspeech2_ljspeech,fastspeech2_aishell3,fastspeech2_vctk,tacotron2_csmsc,tacotron2_ljspeech}]

examples/aishell3/tts3/run.sh

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

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

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

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

0 commit comments

Comments
 (0)