From ccc77799d9f76a112ae99024707408b2b0e10243 Mon Sep 17 00:00:00 2001 From: shinjiyu Date: Wed, 28 Oct 2026 06:02:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E7=BA=A0=E6=AD=A3=20AliLLM=20?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=E6=96=87=E6=A1=88=E4=B8=8E=20PaddleSpeech=20?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AliLLM 的 api_key 占位误写成 deepseek,照抄会把错误 key 填进百炼(#3495) - PaddleSpeechTTS 实际只实现 websocket,去掉 config/报错里对 http 的承诺(#3503) --- main/xiaozhi-server/config.yaml | 6 +++--- main/xiaozhi-server/core/providers/tts/paddle_speech.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/xiaozhi-server/config.yaml b/main/xiaozhi-server/config.yaml index 17329459a..be2b2bb73 100644 --- a/main/xiaozhi-server/config.yaml +++ b/main/xiaozhi-server/config.yaml @@ -619,7 +619,7 @@ LLM: # 可在这里找到你的 api_key https://bailian.console.aliyun.com/?apiKey=1#/api-key base_url: https://dashscope.aliyuncs.com/compatible-mode/v1 model_name: qwen-flash - api_key: 你的deepseek web key + api_key: 你的api_key temperature: 0.7 # 温度值 max_tokens: 500 # 最大生成token数 top_p: 1 @@ -1117,8 +1117,8 @@ TTS: #SpeechServerDemo https://github.com/PaddlePaddle/PaddleSpeech/tree/develop/demos/speech_server #流式传输请参考 https://github.com/PaddlePaddle/PaddleSpeech/wiki/PaddleSpeech-Server-WebSocket-API type: paddle_speech - protocol: websocket # protocol choices = ['websocket', 'http'] - url: ws://127.0.0.1:8092/paddlespeech/tts/streaming # TTS 服务的 URL 地址,指向本地服务器 [websocket默认ws://127.0.0.1:8092/paddlespeech/tts/streaming,http默认http://127.0.0.1:8090/paddlespeech/tts] + protocol: websocket # 当前仅实现 websocket + url: ws://127.0.0.1:8092/paddlespeech/tts/streaming # TTS 服务的 URL 地址,指向本地服务器 [websocket 默认 ws://127.0.0.1:8092/paddlespeech/tts/streaming] spk_id: 0 # 发音人 ID,0 通常表示默认的发音人 speed: 1.0 # 语速,1.0 表示正常语速,>1 表示加快,<1 表示减慢 volume: 1.0 # 音量,1.0 表示正常音量,>1 表示增大,<1 表示减小 diff --git a/main/xiaozhi-server/core/providers/tts/paddle_speech.py b/main/xiaozhi-server/core/providers/tts/paddle_speech.py index e9562d60e..52cb88295 100644 --- a/main/xiaozhi-server/core/providers/tts/paddle_speech.py +++ b/main/xiaozhi-server/core/providers/tts/paddle_speech.py @@ -82,7 +82,7 @@ class TTSProvider(TTSProviderBase): if self.protocol == "websocket": return await self.text_streaming(text, output_file) else: - raise ValueError("Unsupported protocol. Please use 'websocket' or 'http'.") + raise ValueError("Unsupported protocol. Please use 'websocket'.") async def text_streaming(self, text, output_file): try: