Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[server] add paddle inference code #1425

Merged
merged 9 commits into from
Feb 10, 2022
45 changes: 45 additions & 0 deletions speechserving/speechserving/conf/tts/tts_pd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is the parameter configuration file for TTS server.
# These are the static models that support paddle inference.

##################################################################
# TTS SERVER SETTING #
##################################################################
host: '0.0.0.0'
port: 8692

##################################################################
# ACOUSTIC MODEL SETTING #
# am choices=['speedyspeech_csmsc', 'fastspeech2_csmsc']
##################################################################
am: 'fastspeech2_csmsc'
am_model:
am_params:
phones_dict: './dict_dir/phone_id_map.txt'
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:
voc_params:

voc_predictor_conf:
use_gpu: 'true'
enable_mkldnn: 'true'
switch_ir_optim: 'true'

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