son();
            } catch (err) {
                console.error('Error fetching voices:', err);
                showError(err.toString());
            }
        }
        function updateVoices() {
            while (voiceSelect.options.length > 0) {
                voiceSelect.remove(0)
            }

            if (voices === undefined) {
                return;
            }
            const voiceList = voices[modelSelect.value];
            if (voiceList === undefined) {
                return;
      