From 2b12b16d11cabe1a2ba321f03309e4612515dab8 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 08 五月 2023 10:37:47 +0800
Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add

---
 funasr/runtime/python/websocket/ws_server_offline.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/funasr/runtime/python/websocket/ws_server_offline.py b/funasr/runtime/python/websocket/ws_server_offline.py
index c60ea6f..c415703 100644
--- a/funasr/runtime/python/websocket/ws_server_offline.py
+++ b/funasr/runtime/python/websocket/ws_server_offline.py
@@ -96,8 +96,9 @@
                     if not is_speaking:
                         websocket.vad_pre_idx = 0
                         frames = []
+                        websocket.param_dict_vad = {'in_cache': dict()}
                     else:
-                        frames = frames[-10:]
+                        frames = frames[-20:]
 
      
     except websockets.ConnectionClosed:

--
Gitblit v1.9.1