Language Pronunciation Guide
Hear correct pronunciations for words and phrases in various languages.
Generating audio...
Phonetic Spelling (Simplified)
Error: ${error.message}
`; resultsSection.classList.remove('hidden'); console.error("API call failed:", error); } finally { loader.classList.add('hidden'); } }); // --- PDF DOWNLOAD --- downloadPdfBtn.addEventListener('click', () => { if (!lastResult) { alert("Please generate a pronunciation before downloading."); return; } const { jsPDF } = window.jspdf; const doc = new jsPDF(); doc.setFontSize(22); doc.text('Pronunciation Guide', 105, 20, { align: 'center' }); doc.autoTable({ startY: 30, head: [['Parameter', 'Value']], body: [ ['Word / Phrase', lastResult.text], ['Language', lastResult.lang], ['Phonetic Spelling', lastResult.phonetic] ], theme: 'grid' }); doc.save('pronunciation-guide.pdf'); }); });