      }
            for (const voice of voiceList) {
                const option = document.createElement('option');
                option.textContent = voice;
                option.value = voice;
                voiceSelect.add(option);
            }
        }
        let voices = undefined;
        modelSelect.addEventListener('input', updateVoices);
        // End: Voices Logic

        // Start: Refresh Logic
        async function refreshModels() {
            refreshBtn.disabled = true;
           