性能测试跳过未配置的Linkerai语音合成 (#3510)

配置里没有这个供应器时整项跳过,不再报一条测试失败。
This commit is contained in:
hrz authored and GitHub committed 2026-10-27 15:35:38 +08:00
1 parent 6c352e5978
commit f1965167cc
1 file changed
+3 -2
@@ -647,8 +647,9 @@ class StreamTTSPerformanceTester:
self.results.append(result)
# 测试Linkerai TTS
result = await self.test_linkerai_tts(test_text, test_count)
self.results.append(result)
if self.config.get("TTS", {}).get("LinkeraiTTS"):
result = await self.test_linkerai_tts(test_text, test_count)
self.results.append(result)
# 测试IndexStreamTTS
result = await self.test_indexstream_tts(test_text, test_count)