@ -41,6 +44,7 @@ from paddlespeech.s2t.utils.utility import UpdateConfig
__all__=['ASRExecutor']
@timer_register
@cli_register(
name='paddlespeech.asr',description='Speech to text infer command.')
classASRExecutor(BaseExecutor):
@ -99,6 +103,11 @@ class ASRExecutor(BaseExecutor):
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'
)
self.parser.add_argument(
'--rtf',
action="store_true",
default=False,
help='Show Real-time Factor(RTF).')
self.parser.add_argument(
'--device',
type=str,
@ -407,6 +416,7 @@ class ASRExecutor(BaseExecutor):
ckpt_path=parser_args.ckpt_path
decode_method=parser_args.decode_method
force_yes=parser_args.yes
rtf=parser_args.rtf
device=parser_args.device
ifnotparser_args.verbose:
@ -419,12 +429,15 @@ class ASRExecutor(BaseExecutor):