@ -41,6 +44,7 @@ from paddlespeech.s2t.utils.utility import UpdateConfig
__all__=['ASRExecutor']
__all__=['ASRExecutor']
@timer_register
@cli_register(
@cli_register(
name='paddlespeech.asr',description='Speech to text infer command.')
name='paddlespeech.asr',description='Speech to text infer command.')
classASRExecutor(BaseExecutor):
classASRExecutor(BaseExecutor):
@ -99,6 +103,11 @@ class ASRExecutor(BaseExecutor):
default=False,
default=False,
help='No additional parameters required. Once set this parameter, it means accepting the request of the program by default, which includes transforming the audio sample rate'
help='No additional parameters required. Once set this parameter, it means accepting the request of the program by default, which includes transforming the audio sample rate'
)
)
self.parser.add_argument(
'--rtf',
action="store_true",
default=False,
help='Show Real-time Factor(RTF).')
self.parser.add_argument(
self.parser.add_argument(
'--device',
'--device',
type=str,
type=str,
@ -407,6 +416,7 @@ class ASRExecutor(BaseExecutor):
ckpt_path=parser_args.ckpt_path
ckpt_path=parser_args.ckpt_path
decode_method=parser_args.decode_method
decode_method=parser_args.decode_method
force_yes=parser_args.yes
force_yes=parser_args.yes
rtf=parser_args.rtf
device=parser_args.device
device=parser_args.device
ifnotparser_args.verbose:
ifnotparser_args.verbose:
@ -419,12 +429,15 @@ class ASRExecutor(BaseExecutor):