feat: 添加 TTS 引擎配置,更新阿里巴巴语音接口,支持实时语音合成

This commit is contained in:
EvanWu
2025-07-30 21:30:49 +08:00
parent 557a2cce35
commit 9990a89698
9 changed files with 241 additions and 45 deletions

View File

@@ -5,13 +5,13 @@ import { ListItem, Select, PasswordInput } from "@/app/components/ui-lib";
import { InputRange } from "@/app/components/input-range";
import { Voice } from "rt-client";
import { ServiceProvider } from "@/app/constant";
import { REALTIME_TTS_MODELS, ServiceProvider } from "@/app/constant";
const providers = [ServiceProvider.OpenAI, ServiceProvider.Azure];
const providers = Object.keys(REALTIME_TTS_MODELS) as ServiceProvider[];
const models = ["gpt-4o-realtime-preview-2024-10-01"];
const models = ["gpt-4o-realtime-preview-2024-10-01", "qwen-tts-realtime"];
const voice = ["alloy", "shimmer", "echo"];
const voice = ["alloy", "shimmer", "echo","Chelsie"];
export function RealtimeConfigList(props: {
realtimeConfig: RealtimeConfig;