From 9d0983671285b60095d549350d0e191eae48d237 Mon Sep 17 00:00:00 2001 From: ikaros <327209194@qq.com> Date: Thu, 12 Dec 2024 20:51:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9AGSV=E5=88=A0?= =?UTF-8?q?=E9=99=A4ws=E9=85=8D=E7=BD=AE=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E8=BF=90=E8=A1=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- utils/audio.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index c615e315..7cb867e9 100644 --- a/main.py +++ b/main.py @@ -2446,7 +2446,7 @@ def on_message(ws, message): def on_error(ws, error): logger.error(f"Error:{error}") - def on_close(ws): + def on_close(ws, close_status_code, close_msg): logger.debug("WebSocket connection closed") def on_open(ws): diff --git a/utils/audio.py b/utils/audio.py index 023421ac..d1a708d3 100644 --- a/utils/audio.py +++ b/utils/audio.py @@ -1080,7 +1080,6 @@ async def tts_handle(self, message): data = { "type": message["data"]["type"], "gradio_ip_port": message["data"]["gradio_ip_port"], - "ws_ip_port": message["data"]["ws_ip_port"], "api_ip_port": message["data"]["api_ip_port"], "ref_audio_path": message["data"]["ref_audio_path"], "prompt_text": message["data"]["prompt_text"],