From e0304e1c734df06a0128cd79afbbcdf34eb4f77f Mon Sep 17 00:00:00 2001 From: ikaros <327209194@qq.com> Date: Tue, 18 Jun 2024 14:14:52 +0800 Subject: [PATCH] =?UTF-8?q?chattts=20api=E8=B0=83=E7=94=A8=E6=94=B9get?= =?UTF-8?q?=E4=B8=BApost=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/audio_handle/my_tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/audio_handle/my_tts.py b/utils/audio_handle/my_tts.py index b416e110..b81e50b3 100644 --- a/utils/audio_handle/my_tts.py +++ b/utils/audio_handle/my_tts.py @@ -1166,7 +1166,7 @@ async def chattts_api(self, data): } try: - return await self.download_audio("ChatTTS", data["api_ip_port"], self.timeout, "get", params) + return await self.download_audio("ChatTTS", data["api_ip_port"], self.timeout, "post", json_data=params) except aiohttp.ClientError as e: logging.error(traceback.format_exc()) logging.error(f'ChatTTS请求失败: {e}')