tts: complete clara->atlas remap in normalizeModelVoice fallback
This commit is contained in:
parent
ddc895de4c
commit
0c024fa899
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ const PHANTOM_VOICES = new Set(["aria", "luna", "sage", "cole", "jude"]);
|
|||
export function normalizeModelVoice(model, voice) {
|
||||
const isQwen = !model || model === "tts-1" || model.includes("qwen");
|
||||
const normModel = isQwen ? "tts-1-f5" : model;
|
||||
const normVoice = LEGACY_OPENAI_VOICES.has(voice) || PHANTOM_VOICES.has(voice) ? "clara" : voice;
|
||||
const normVoice = LEGACY_OPENAI_VOICES.has(voice) || PHANTOM_VOICES.has(voice) ? "atlas" : voice;
|
||||
return { model: normModel, voice: normVoice };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue