fix(tts): purge legacy free voices and align runtime/UI validation

This commit is contained in:
2026-02-24 17:37:16 +08:00
parent 3a82f7b7f5
commit 1b624252c8
2 changed files with 28 additions and 2 deletions

View File

@@ -2168,7 +2168,12 @@ function normalizeMySpeakers(list) {
value: String(item?.value || '').trim(),
source: item?.source || getVoiceSource(item?.value || ''),
resourceId: item?.resourceId || null,
})).filter(item => item.value);
})).filter(item => {
if (!item.value) return false;
// Keep UI behavior aligned with runtime: remove unsupported legacy free voices.
if (item.source === 'free' && !TRIAL_VOICE_KEYS.has(item.value)) return false;
return true;
});
}
function applyCacheStats(stats = {}) {