ws_application.yaml 1.7 KB
Newer Older
W
WilliamZhang06 已提交
1 2 3 4 5 6
# This is the parameter configuration file for PaddleSpeech Serving.

#################################################################################
#                             SERVER SETTING                                    #
#################################################################################
host: 0.0.0.0
X
xiongxinlei 已提交
7
port: 8090
W
WilliamZhang06 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

# The task format in the engin_list is: <speech task>_<engine type>
# task choices = ['asr_online', 'tts_online']
# protocol = ['websocket', 'http'] (only one can be selected).
# websocket only support online engine type.
protocol: 'websocket'
engine_list: ['asr_online']


#################################################################################
#                                ENGINE CONFIG                                  #
#################################################################################

################################### ASR #########################################
################### speech task: asr; engine_type: online #######################
asr_online:
24
    model_type: 'deepspeech2online_aishell'
W
WilliamZhang06 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
    am_model: # the pdmodel file of am static model [optional]
    am_params:  # the pdiparams file of am static model [optional]
    lang: 'zh'
    sample_rate: 16000
    cfg_path: 
    decode_method: 
    force_yes: True

    am_predictor_conf:
        device:  # set 'gpu:id' or 'cpu'
        switch_ir_optim: True
        glog_info: False  # True -> print glog
        summary: True  # False -> do not show predictor config

    chunk_buffer_conf:
40 41 42 43
        frame_duration_ms: 80
        shift_ms: 40
        sample_rate: 16000
        sample_width: 2
44 45
        window_n: 7     # frame
        shift_n: 4      # frame
46
        window_ms: 20   # ms
47
        shift_ms: 10    # ms