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";