@ -102,10 +102,12 @@ class ASRExecutor(BaseExecutor):
default=None,
default=None,
help='Checkpoint file of model.')
help='Checkpoint file of model.')
self.parser.add_argument(
self.parser.add_argument(
'--yes','-y',
'--yes',
'-y',
action="store_true",
action="store_true",
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(
self.parser.add_argument(
'--device',
'--device',
type=str,
type=str,
@ -379,19 +381,22 @@ class ASRExecutor(BaseExecutor):
Iftheresultdoesnotmeetyourexpectations,\n \
Iftheresultdoesnotmeetyourexpectations,\n \
Pleaseinputthe16k16bit1channelwavfile. \
Pleaseinputthe16k16bit1channelwavfile. \
".format(self.sample_rate, self.sample_rate))
".format(self.sample_rate, self.sample_rate))
ifforce_yes==False:
ifforce_yesisFalse:
while(True):
while(True):
logger.info(
logger.info(
"Whether to change the sample rate and the channel. Y: change the sample. N: exit the prgream."
"Whether to change the sample rate and the channel. Y: change the sample. N: exit the prgream."