diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 3a3becd74..6f818e62a 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -749,10 +749,6 @@ class VoiceMapEntry { * */ export async function initVoiceMap(){ - // Clear existing voiceMap state - $('#tts_voicemap_block').empty() - voiceMapEntries = [] - // Gate initialization if not enabled or TTS Provider not ready. Prevents error popups. const enabled = $('#tts_enabled').is(':checked') if (!enabled){ @@ -770,6 +766,10 @@ export async function initVoiceMap(){ setTtsStatus("TTS Provider Loaded", true) + // Clear existing voiceMap state + $('#tts_voicemap_block').empty() + voiceMapEntries = [] + // Get characters in current chat const characters = getCharacters()