You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1010 B
35 lines
1010 B
#!/bin/bash
|
|
|
|
train_output_path=$1
|
|
|
|
stage=0
|
|
stop_stage=0
|
|
|
|
# pwgan
|
|
if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
|
|
python3 ${BIN_DIR}/../lite_predict.py \
|
|
--inference_dir=${train_output_path}/pdlite \
|
|
--am=fastspeech2_vctk \
|
|
--voc=pwgan_vctk \
|
|
--text=${BIN_DIR}/../../assets/sentences_en.txt \
|
|
--output_dir=${train_output_path}/lite_infer_out \
|
|
--phones_dict=dump/phone_id_map.txt \
|
|
--speaker_dict=dump/speaker_id_map.txt \
|
|
--spk_id=0 \
|
|
--lang=en
|
|
fi
|
|
|
|
# hifigan
|
|
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
|
|
python3 ${BIN_DIR}/../lite_predict.py \
|
|
--inference_dir=${train_output_path}/pdlite \
|
|
--am=fastspeech2_vctk \
|
|
--voc=hifigan_vctk \
|
|
--text=${BIN_DIR}/../../assets/sentences_en.txt \
|
|
--output_dir=${train_output_path}/lite_infer_out \
|
|
--phones_dict=dump/phone_id_map.txt \
|
|
--speaker_dict=dump/speaker_id_map.txt \
|
|
--spk_id=0 \
|
|
--lang=en
|
|
fi
|