|
|
@ -53,6 +53,9 @@ class ASREngine(BaseEngine):
|
|
|
|
self.executor = ASRServerExecutor()
|
|
|
|
self.executor = ASRServerExecutor()
|
|
|
|
|
|
|
|
|
|
|
|
self.config = get_config(config_file)
|
|
|
|
self.config = get_config(config_file)
|
|
|
|
|
|
|
|
if self.config.device is None:
|
|
|
|
|
|
|
|
paddle.set_device(paddle.get_device())
|
|
|
|
|
|
|
|
else:
|
|
|
|
paddle.set_device(self.config.device)
|
|
|
|
paddle.set_device(self.config.device)
|
|
|
|
self.executor._init_from_path(
|
|
|
|
self.executor._init_from_path(
|
|
|
|
self.config.model, self.config.lang, self.config.sample_rate,
|
|
|
|
self.config.model, self.config.lang, self.config.sample_rate,
|
|
|
|