diff --git a/assets/js/app.js b/assets/js/app.js index 5824ca0..731b9a8 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -12371,7 +12371,7 @@ function _initBrowserTtsVoices(selectedVoice) { sel.innerHTML = ''; const populate = () => { - const voices = window.speechSynthesis.getVoices(); + const voices = (window.speechSynthesis.getVoices() || []).filter(v => v != null && v.lang); if (!voices.length) return false; // Italian voices first, then others const it = voices.filter(v => v.lang.startsWith('it'));