From 63bcaf7093c986e0c33b14212fca3705c0877864 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 31 三月 2023 17:28:00 +0800
Subject: [PATCH] export

---
 funasr/runtime/python/websocket/ASR_client.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/funasr/runtime/python/websocket/ASR_client.py b/funasr/runtime/python/websocket/ASR_client.py
index fe67981..d1fb93a 100644
--- a/funasr/runtime/python/websocket/ASR_client.py
+++ b/funasr/runtime/python/websocket/ASR_client.py
@@ -6,6 +6,7 @@
 from queue import Queue
 # import threading
 import argparse
+import json
 
 parser = argparse.ArgumentParser()
 parser.add_argument("--host",
@@ -78,7 +79,9 @@
     global websocket
     while True:
         try:
-            print(await websocket.recv())
+            meg = await websocket.recv()
+            meg = json.loads(meg)
+            print(meg)
         except Exception as e:
             print("Exception:", e)          
         

--
Gitblit v1.9.1