From 2d75eb76f10d7ffe8a155507b7b9a9e6760a6f9d Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sat, 16 Aug 2025 14:36:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=BC=95=E5=AF=BC=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/providers/tts/default.py | 2 +- main/xiaozhi-server/test/test_page.html | 3173 +++++++++-------- 2 files changed, 1625 insertions(+), 1550 deletions(-) diff --git a/main/xiaozhi-server/core/providers/tts/default.py b/main/xiaozhi-server/core/providers/tts/default.py index 7818d288..fa812d7e 100644 --- a/main/xiaozhi-server/core/providers/tts/default.py +++ b/main/xiaozhi-server/core/providers/tts/default.py @@ -9,7 +9,7 @@ logger = setup_logging() class DefaultTTS(TTSProviderBase): def __init__(self, config, delete_audio_file=True): super().__init__(config, delete_audio_file) - self.output_dir = config.get("output_dir", "output") + self.output_dir = config.get("output_dir", "tmp") if not os.path.exists(self.output_dir): os.makedirs(self.output_dir) diff --git a/main/xiaozhi-server/test/test_page.html b/main/xiaozhi-server/test/test_page.html index 2dc37fe4..6f8fdba9 100644 --- a/main/xiaozhi-server/test/test_page.html +++ b/main/xiaozhi-server/test/test_page.html @@ -6,1279 +6,1354 @@ 小智服务器测试页面 + + + -
-

小智服务器测试页面

+
+

小智服务器测试页面

-
- 正在加载Opus库... -
+
+ 正在加载Opus库... +
- -
-

- 设备配置 - + +
+

+ 设备配置 + MAC: 客户端: web_test_client - -

-
-
-
- - -
-
- - -
-
- - -
-
- - + +

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
-
-
-

- 连接信息 - +
+

+ 连接信息 + OTA: ota未连接 WS: ws未连接 -

-
- - - - -
-
- -
-
- - -
- -
-
- - +

+
+ + + +
-
-
- +
+
+ +
- -
-
-
-

会话记录

-
-
-
-
准备就绪,请连接服务器开始测试...
+
+
+ + +
+
+ +
+
+ +
+ +
+
+ +
+

会话记录

+
+
+
+
准备就绪,请连接服务器开始测试...
+
-
- - + + - + // 获取配置值 + function getConfig() { + const deviceMac = document.getElementById('deviceMac').value.trim(); + return { + deviceId: deviceMac, // 使用MAC地址作为deviceId + deviceName: document.getElementById('deviceName').value.trim(), + deviceMac: deviceMac, + clientId: document.getElementById('clientId').value.trim(), + token: document.getElementById('token').value.trim() + }; + } + + initApp(); + \ No newline at end of file