Merge branch 'develop'

This commit is contained in:
dadaloop82
2026-05-16 07:38:17 +00:00
+1 -1
View File
@@ -12371,7 +12371,7 @@ function _initBrowserTtsVoices(selectedVoice) {
sel.innerHTML = '<option value="">— Caricamento voci… —</option>'; sel.innerHTML = '<option value="">— Caricamento voci… —</option>';
const populate = () => { const populate = () => {
const voices = window.speechSynthesis.getVoices(); const voices = (window.speechSynthesis.getVoices() || []).filter(v => v != null && v.lang);
if (!voices.length) return false; if (!voices.length) return false;
// Italian voices first, then others // Italian voices first, then others
const it = voices.filter(v => v.lang.startsWith('it')); const it = voices.filter(v => v.lang.startsWith('it'));