From a917d7557dd2b1e5263eeba7e5e4d5a5fc02f69f Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 27 四月 2023 11:41:16 +0800
Subject: [PATCH] websocket
---
funasr/runtime/python/websocket/ASR_client.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/runtime/python/websocket/ASR_client.py b/funasr/runtime/python/websocket/ASR_client.py
index b0abfc7..9a4a148 100644
--- a/funasr/runtime/python/websocket/ASR_client.py
+++ b/funasr/runtime/python/websocket/ASR_client.py
@@ -59,7 +59,7 @@
voices.put(message)
#print(voices.qsize())
- await asyncio.sleep(0.01)
+ await asyncio.sleep(0.005)
# 鍏朵粬鍑芥暟鍙互閫氳繃璋冪敤send(data)鏉ュ彂閫佹暟鎹紝渚嬪锛�
async def record_from_scp():
@@ -116,8 +116,8 @@
await websocket.send(data) # 閫氳繃ws瀵硅薄鍙戦�佹暟鎹�
except Exception as e:
print('Exception occurred:', e)
- await asyncio.sleep(0.01)
- await asyncio.sleep(0.01)
+ await asyncio.sleep(0.005)
+ await asyncio.sleep(0.005)
--
Gitblit v1.9.1