Update asr_inference_pipeline.py

rename simu_streaming to fake_streaming
This commit is contained in:
aky15
2023-09-14 16:06:10 +08:00
committed by GitHub
parent fca65485c2
commit e535c6525e

View File

@@ -160,7 +160,7 @@ class AutomaticSpeechRecognitionPipeline(Pipeline):
token_num_relax=self.cmd['token_num_relax'],
decoding_ind=self.cmd['decoding_ind'],
decoding_mode=self.cmd['decoding_mode'],
simu_streaming=self.cmd['simu_streaming'],
fake_streaming=self.cmd['fake_streaming'],
**kwargs,
)
@@ -312,7 +312,7 @@ class AutomaticSpeechRecognitionPipeline(Pipeline):
'model_fs': None,
'audio_fs': None
},
'simu_streaming': False,
'fake_streaming': False,
}
frontend_conf = None
@@ -335,8 +335,8 @@ class AutomaticSpeechRecognitionPipeline(Pipeline):
decoding_ind = root['decoding_ind']
if 'decoding_mode' in root:
decoding_mode = root['decoding_mode']
if 'simu_streaming' in root:
simu_streaming = root['simu_streaming']
if 'fake_streaming' in root:
fake_streaming = root['fake_streaming']
cmd['beam_size'] = root['beam_size']
cmd['penalty'] = root['penalty']
@@ -393,7 +393,7 @@ class AutomaticSpeechRecognitionPipeline(Pipeline):
'punc_model_file',
'punc_infer_config',
'param_dict',
'simu_streaming',
'fake_streaming',
]
for user_args in user_args_dict: