= lang === 'en' ? 'Generating...' : '正在生成...';
        generateBtnSpinner.style.display = 'inline-block';
    } else { 
        generateBtn.disabled = false;
        generateBtnContent.style.display = 'inline-flex';
        generateBtnSpinner.style.display = 'none';
        const currentText = generateBtnText.getAttribute(`data-lang-${lang}`);
        if (currentText) generateBtnText.textContent = currentText;
    }
}
async function generateAudio() {
    const text = textInput.value.trim();
    cons