|
|
@ -36,7 +36,7 @@ def main(args):
|
|
|
|
if args.wavfile and os.path.exists(args.wavfile):
|
|
|
|
if args.wavfile and os.path.exists(args.wavfile):
|
|
|
|
logger.info(f"start to process the wavscp: {args.wavfile}")
|
|
|
|
logger.info(f"start to process the wavscp: {args.wavfile}")
|
|
|
|
result = loop.run_until_complete(handler.run(args.wavfile))
|
|
|
|
result = loop.run_until_complete(handler.run(args.wavfile))
|
|
|
|
result = result["final_result"]
|
|
|
|
result = result["result"]
|
|
|
|
logger.info(f"asr websocket client finished : {result}")
|
|
|
|
logger.info(f"asr websocket client finished : {result}")
|
|
|
|
|
|
|
|
|
|
|
|
# support to process batch audios from wav.scp
|
|
|
|
# support to process batch audios from wav.scp
|
|
|
@ -47,7 +47,7 @@ def main(args):
|
|
|
|
for line in f:
|
|
|
|
for line in f:
|
|
|
|
utt_name, utt_path = line.strip().split()
|
|
|
|
utt_name, utt_path = line.strip().split()
|
|
|
|
result = loop.run_until_complete(handler.run(utt_path))
|
|
|
|
result = loop.run_until_complete(handler.run(utt_path))
|
|
|
|
result = result["final_result"]
|
|
|
|
result = result["result"]
|
|
|
|
w.write(f"{utt_name} {result}\n")
|
|
|
|
w.write(f"{utt_name} {result}\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|