From a79efa3b8dab3465cf37744b2de13b53cc34d572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Thu, 12 Sep 2024 14:21:39 +0800 Subject: [PATCH] wss sdk bug --- runtime/python/websocket/funasr_wss_server_llm_multiturn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/python/websocket/funasr_wss_server_llm_multiturn.py b/runtime/python/websocket/funasr_wss_server_llm_multiturn.py index b60e446de..cf3d34155 100644 --- a/runtime/python/websocket/funasr_wss_server_llm_multiturn.py +++ b/runtime/python/websocket/funasr_wss_server_llm_multiturn.py @@ -80,7 +80,8 @@ class NlsTtsSynthesizer: self.started = True def send_text(self, text): - self.sdk.sendStreamInputTts(text) + if len(text) > 0: + self.sdk.sendStreamInputTts(text) def stop(self): self.sdk.stopStreamInputTts()