fix(tts): add minimax provider to TtsProvider and TtsConfig types

This commit is contained in:
leolele 2026-01-29 22:45:17 +08:00
parent a8de62df4e
commit c8ecb63139

View File

@ -1,4 +1,4 @@
export type TtsProvider = "elevenlabs" | "openai" | "edge";
export type TtsProvider = "elevenlabs" | "openai" | "edge" | "minimax";
export type TtsMode = "final" | "all";
@ -73,6 +73,12 @@ export type TtsConfig = {
proxy?: string;
timeoutMs?: number;
};
/** MiniMax configuration. */
minimax?: {
apiKey?: string;
model?: string;
baseUrl?: string;
};
/** Optional path for local TTS user preferences JSON. */
prefsPath?: string;
/** Hard cap for text sent to TTS (chars). */