Merge pull request #1789 from Honei/v0.3

[asr][server]fix client parse the asr result bug
pull/1792/head
Hui Zhang 2 years ago committed by GitHub
commit 0aed9fdf72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save