From 937e507977cc9e49ce323f8b2933087d0fe52698 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期日, 16 四月 2023 22:29:32 +0800
Subject: [PATCH] Merge pull request #363 from alibaba-damo-academy/main

---
 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