tts_pd.yaml 1.5 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
  device: 'cpu'  # set 'gpu:id' or 'cpu'
L
lym0302 已提交
19 20
  enable_mkldnn: False
  switch_ir_optim: False
L
lym0302 已提交
21 22 23 24 25 26 27


##################################################################
#                     VOCODER SETTING                            #
# voc choices=['pwgan_csmsc', 'mb_melgan_csmsc','hifigan_csmsc']
##################################################################
voc: 'pwgan_csmsc'
L
lym0302 已提交
28 29
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 已提交
30 31 32
voc_sample_rate: 24000

voc_predictor_conf:
L
lym0302 已提交
33
  device: 'cpu'  # set 'gpu:id' or 'cpu'
L
lym0302 已提交
34 35
  enable_mkldnn: False  
  switch_ir_optim: False  
L
lym0302 已提交
36 37 38 39 40

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