From c6a7871e5bf5236e19643a8cb4a20838d721f7e7 Mon Sep 17 00:00:00 2001 From: Sakura-RanChen <1908198662@qq.com> Date: Mon, 15 Sep 2025 10:33:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=82=E6=95=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/providers/tts/index_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/providers/tts/index_stream.py b/main/xiaozhi-server/core/providers/tts/index_stream.py index 8abb06f2..186e1fc8 100644 --- a/main/xiaozhi-server/core/providers/tts/index_stream.py +++ b/main/xiaozhi-server/core/providers/tts/index_stream.py @@ -190,7 +190,7 @@ class TTSProvider(TTSProviderBase): start_time = time.time() text = MarkdownCleaner.clean_markdown(text) - payload = {"text": text, "character": self.character} + payload = {"text": text, "character": self.voice} try: with requests.post(self.api_url, json=payload, timeout=5) as response: