refactor: 恢复runtime代码,去除调试console代码

This commit is contained in:
EvanWu
2025-07-31 10:50:45 +08:00
parent e836dc0db8
commit 221229ce2f
4 changed files with 2 additions and 6 deletions

View File

@@ -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();

View File

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