Update index.html

This commit is contained in:
Naiel
2025-06-05 11:28:18 +02:00
committed by GitHub
parent f49286672c
commit a765a98437

View File

@@ -2312,6 +2312,12 @@
data["_key"] = key;
if (JSON.stringify(rows2[key]) != JSON.stringify(data)) {
console.log("SC:Updated:", data)
if (tts) {
let utterance = new SpeechSynthesisUtterance("Comanda del " + SC_Personas[data.Persona].Region + ": " + SC_Personas[data.Persona].Region ". " + data.Estado);
utterance.rate = 0.9
utterance.voice = speechSynthesis.getVoices()[7]
speechSynthesis.speak(utterance);
}
}
rows2[key] = data;
old[key] = data;