diff --git a/modules/turnero/views/display_global.php b/modules/turnero/views/display_global.php index f1b6425..67795f9 100644 --- a/modules/turnero/views/display_global.php +++ b/modules/turnero/views/display_global.php @@ -525,8 +525,9 @@ function anunciarTurno(codigo, destino, paciente) { playBeep(); if (!sonidoActivo || !('speechSynthesis' in window)) return null; const letras = codigo.split('').join(' '); + const nomVoz = paciente ? paciente.toLowerCase().replace(/\b\w/g, c => c.toUpperCase()) : null; let texto = `Turno ${letras}`; - if (paciente) texto += `, ${paciente}`; + if (nomVoz) texto += `, ${nomVoz}`; texto += `, pase a ${destino}`; const utt = new SpeechSynthesisUtterance(texto); utt.lang = 'es-CO';