tts_pd.yaml 1.6 KB
Newer Older
L
lym0302 已提交
1 2 3 4 5 6 7 8
# 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'   
L
lym0302 已提交
9 10
am_model: # the pdmodel file of your am static model (XX.pdmodel)
am_params: # the pdiparams file of your am static model (XX.pdipparams)
L
lym0302 已提交
11 12 13 14 15 16 17
am_sample_rate: 24000
phones_dict: 
tones_dict: 
speaker_dict: 
spk_id: 0

am_predictor_conf:
L
lym0302 已提交
18 19 20 21
  device:  # set 'gpu:id' or 'cpu'
  switch_ir_optim: True
  glog_info: False # True -> print glog
  summary: True  # False -> do not show predictor config
L
lym0302 已提交
22 23 24 25 26 27 28


##################################################################
#                     VOCODER SETTING                            #
# voc choices=['pwgan_csmsc', 'mb_melgan_csmsc','hifigan_csmsc']
##################################################################
voc: 'pwgan_csmsc'
L
lym0302 已提交
29 30
voc_model: # the pdmodel file of your vocoder static model (XX.pdmodel)
voc_params: # the pdiparams file of your vocoder static model (XX.pdipparams)
L
lym0302 已提交
31 32 33
voc_sample_rate: 24000

voc_predictor_conf:
L
lym0302 已提交
34 35 36 37
  device:  # set 'gpu:id' or 'cpu'  
  switch_ir_optim: True  
  glog_info: False # True -> print glog
  summary: True  # False -> do not show predictor config
L
lym0302 已提交
38 39 40 41 42

##################################################################
#                            OTHERS                              #
##################################################################
lang: 'zh'