run_gen_en.sh 1.0 KB
Newer Older
小湉湉's avatar
小湉湉 已提交
1 2
#!/bin/bash

P
pfZhu 已提交
3
# 纯英文的语音合成
小湉湉's avatar
小湉湉 已提交
4
# 样例为根据 p299_096 对应的语音作为提示语音: This was not the show for me. 来合成:  'I enjoy my life.'
P
pfZhu 已提交
5

P
pfZhu 已提交
6
python inference.py \
小湉湉's avatar
小湉湉 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
    --task_name=synthesize \
    --model_name=paddle_checkpoint_en \
    --uid=p299_096 \
    --new_str='I enjoy my life, do you?' \
    --prefix='./prompt/dev/' \
    --source_language=english \
    --target_language=english \
    --output_name=pred_gen.wav \
    --use_pt_vocoder=False \
    --voc=pwgan_aishell3 \
    --voc_config=download/pwg_aishell3_ckpt_0.5/default.yaml \
    --voc_ckpt=download/pwg_aishell3_ckpt_0.5/snapshot_iter_1000000.pdz \
    --voc_stat=download/pwg_aishell3_ckpt_0.5/feats_stats.npy \
    --am=fastspeech2_ljspeech \
    --am_config=download/fastspeech2_nosil_ljspeech_ckpt_0.5/default.yaml \
    --am_ckpt=download/fastspeech2_nosil_ljspeech_ckpt_0.5/snapshot_iter_100000.pdz \
    --am_stat=download/fastspeech2_nosil_ljspeech_ckpt_0.5/speech_stats.npy \
    --phones_dict=download/fastspeech2_nosil_ljspeech_ckpt_0.5/phone_id_map.txt