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