tts_pd.yaml 1.4 KB
Newer Older
L
lym0302 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# This is the parameter configuration file for TTS server.
# These are the static models that support paddle inference.

##################################################################
#                  ACOUSTIC MODEL SETTING                        #
# am choices=['speedyspeech_csmsc', 'fastspeech2_csmsc']
##################################################################
am: 'fastspeech2_csmsc'   
am_model: # the pdmodel file of am static model
am_params: # the pdiparams file of am static model
am_sample_rate: 24000
phones_dict: 
tones_dict: 
speaker_dict: 
spk_id: 0

am_predictor_conf:
  use_gpu: True
  enable_mkldnn: True
  switch_ir_optim: True


##################################################################
#                     VOCODER SETTING                            #
# voc choices=['pwgan_csmsc', 'mb_melgan_csmsc','hifigan_csmsc']
##################################################################
voc: 'pwgan_csmsc'
voc_model: # the pdmodel file of vocoder static model
voc_params: # the pdiparams file of vocoder static model 
voc_sample_rate: 24000

voc_predictor_conf:
  use_gpu: True
  enable_mkldnn: True  
  switch_ir_optim: True  

##################################################################
#                            OTHERS                              #
##################################################################
lang: 'zh'
device: paddle.get_device()