From 1a4b8d76c5a9032639372f7530e45313c522f665 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Sat, 24 Oct 2026 08:06:12 +0000 Subject: [PATCH] =?UTF-8?q?TTS=20=E7=94=A8=E4=BE=8B=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E9=87=8C=E7=9A=84=E5=90=8D=E5=AD=97=E6=94=B9=E6=88=90=E7=9C=9F?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 说明里写的那个用例名仓库里没有,改成实际跑的那条。 --- main/xiaozhi-server/tests/test_tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/tests/test_tts.py b/main/xiaozhi-server/tests/test_tts.py index 0ad3f001a..6f7f5867f 100644 --- a/main/xiaozhi-server/tests/test_tts.py +++ b/main/xiaozhi-server/tests/test_tts.py @@ -8,7 +8,7 @@ Live 模式(``RUN_LIVE_API_TESTS=1``):调真实 TTS provider。 text_to_speak(text, output_file) -> 异步,把合成结果写到 output_file 注意: -- 3 个构造测试不依赖云服务;第 4 个 test_tts_text_to_speak_writes_nonempty_file +- 3 个构造测试不依赖云服务;第 4 个 test_tts_text_to_speak_writes_file 才是真链路测试,会真发 HTTP。 - Mock 模式下:第 4 个测试断言宽松 —— 文件存在即可(shim 创建空文件), 不强求 size > 0。Live 模式下严格校验 size > 0。