未验证 提交 0aed9fdf 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #1789 from Honei/v0.3

[asr][server]fix client parse the asr result bug
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册