update
This commit is contained in:
@@ -2317,10 +2317,11 @@
|
|||||||
if (old[key] == undefined) {
|
if (old[key] == undefined) {
|
||||||
old[key] = "";
|
old[key] = "";
|
||||||
}
|
}
|
||||||
if (old[key] != data.Estado && document.getElementById(tts_check).checked) {
|
if (old[key] != data.Estado) {
|
||||||
console.log("SC:Updated:", data)
|
console.log("SC:Updated:", data)
|
||||||
if (tts) {
|
if (tts && document.getElementById(tts_check).checked) {
|
||||||
var msg = `Comanda de ${SC_Personas[data.Persona].Region}. ${SC_Personas[data.Persona].Nombre}. ${data.Estado}`
|
var msg = `Comanda de ${SC_Personas[data.Persona].Region}. ${SC_Personas[data.Persona].Nombre}. ${data.Estado}`
|
||||||
|
console.log("TTS: " + msg)
|
||||||
let utterance = new SpeechSynthesisUtterance(msg);
|
let utterance = new SpeechSynthesisUtterance(msg);
|
||||||
utterance.rate = 0.9
|
utterance.rate = 0.9
|
||||||
utterance.voice = speechSynthesis.getVoices()[7]
|
utterance.voice = speechSynthesis.getVoices()[7]
|
||||||
|
|||||||
Reference in New Issue
Block a user