From 221229ce2f0199076fd077cb5eb42b05b97a7bcd Mon Sep 17 00:00:00 2001 From: EvanWu <850123119@qq.com> Date: Thu, 31 Jul 2025 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=81=A2=E5=A4=8Druntime=E4=BB=A3?= =?UTF-8?q?=E7=A0=81,=E5=8E=BB=E9=99=A4=E8=B0=83=E8=AF=95console=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/client/platforms/alibaba.ts | 1 - app/components/chat.tsx | 2 -- app/components/realtime-chat/realtime-config.tsx | 4 ++-- app/constant.ts | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/client/platforms/alibaba.ts b/app/client/platforms/alibaba.ts index 7427eb818..9c2c7c972 100644 --- a/app/client/platforms/alibaba.ts +++ b/app/client/platforms/alibaba.ts @@ -108,7 +108,6 @@ export class QwenApi implements LLMApi { speed: options.speed, response_format: options.response_format, }; - console.log("[Request] alibaba speech payload: ", requestPayload); const controller = new AbortController(); options.onController?.(controller); try { diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 16a2a01b5..d9362ca90 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1299,7 +1299,6 @@ function _Chat() { let audioBuffer: ArrayBuffer | AudioBuffer; const { markdownToTxt } = require("markdown-to-txt"); const textContent = markdownToTxt(text); - console.log("[OpenAI Speech] textContent: ", textContent); if (config.ttsConfig.engine === "Edge") { const edgeVoiceName = accessStore.edgeVoiceName(); const tts = new MsEdgeTTS(); @@ -1324,7 +1323,6 @@ function _Chat() { voice: config.ttsConfig.voice, speed: config.ttsConfig.speed, })) { - console.log("[Stream Speech] add to queue", chunk); ttsPlayer.addToQueue(chunk); } ttsPlayer.finishStreamPlay(); diff --git a/app/components/realtime-chat/realtime-config.tsx b/app/components/realtime-chat/realtime-config.tsx index f69efff7e..08809afda 100644 --- a/app/components/realtime-chat/realtime-config.tsx +++ b/app/components/realtime-chat/realtime-config.tsx @@ -9,9 +9,9 @@ import { ServiceProvider } from "@/app/constant"; const providers = [ServiceProvider.OpenAI, ServiceProvider.Azure]; -const models = ["gpt-4o-realtime-preview-2024-10-01", "qwen-tts-realtime"]; +const models = ["gpt-4o-realtime-preview-2024-10-01"]; -const voice = ["alloy", "shimmer", "echo","Chelsie"]; +const voice = ["alloy", "shimmer", "echo"]; export function RealtimeConfigList(props: { realtimeConfig: RealtimeConfig; diff --git a/app/constant.ts b/app/constant.ts index 6c3553ebf..734457b1d 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -22,7 +22,6 @@ export const BAIDU_OATUH_URL = `${BAIDU_BASE_URL}/oauth/2.0/token`; export const BYTEDANCE_BASE_URL = "https://ark.cn-beijing.volces.com"; export const ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/"; -export const ALIBABA_RUNTIEM_TTS_URL = "wss://dashscope.aliyuncs.com/api-ws/v1/realtime"; export const TENCENT_BASE_URL = "https://hunyuan.tencentcloudapi.com";