From 6cdbcf4b0aaceedb5a493d53a5686fb42a36db01 Mon Sep 17 00:00:00 2001
From: dudulu <solacowa@gmail.com>
Date: 星期三, 31 一月 2024 16:22:05 +0800
Subject: [PATCH] Update funasr_wss_server.py (#1322)
---
runtime/python/websocket/funasr_wss_server.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/runtime/python/websocket/funasr_wss_server.py b/runtime/python/websocket/funasr_wss_server.py
index fa82ea5..513a2f6 100644
--- a/runtime/python/websocket/funasr_wss_server.py
+++ b/runtime/python/websocket/funasr_wss_server.py
@@ -179,7 +179,8 @@
if "wav_name" in messagejson:
websocket.wav_name = messagejson.get("wav_name")
if "chunk_size" in messagejson:
- websocket.status_dict_asr_online["chunk_size"] = messagejson["chunk_size"]
+ chunk_size = messagejson["chunk_size"].split(',')
+ websocket.status_dict_asr_online["chunk_size"] = [int(x) for x in chunk_size]
if "encoder_chunk_look_back" in messagejson:
websocket.status_dict_asr_online["encoder_chunk_look_back"] = messagejson["encoder_chunk_look_back"]
if "decoder_chunk_look_back" in messagejson:
--
Gitblit v1.9.1