From ef8b05f8e974eef3d3d7c8030c1906d16e505bbc Mon Sep 17 00:00:00 2001 From: seven Date: Fri, 28 Mar 2025 18:08:19 +0800 Subject: [PATCH] add --- main/xiaozhi-server/config.yaml | 1 + main/xiaozhi-server/core/connection.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/xiaozhi-server/config.yaml b/main/xiaozhi-server/config.yaml index 537ff58b0..8aa7db33c 100644 --- a/main/xiaozhi-server/config.yaml +++ b/main/xiaozhi-server/config.yaml @@ -311,6 +311,7 @@ TTS: # 天津话 # 普通话 # 文档地址:https://tts.linkerai.top/docs#/ + # 密匙获取:https://linkerai.top/ type: linkerai api_url: https://tts.linkerai.top/tts voice: OUeAo1mhq6IBExi diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index 717a7e152..2e281bba0 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -609,7 +609,7 @@ class ConnectionHandler: try: # Use the existing chat method - if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and self.tts.stream_mode == 'double_stream': + if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and 'double_stream' in self.tts.stream_mode: self.chat_double_stream(text) else: self.chat(text)