Here’s the Recipe code for other people use if they need to use CEC:
/** Screen Manager /
/ Vocal commands script /
/ set partern in your language /
/ @bugsounet **/
var recipe = {
transcriptionHooks: {
“SCREEN_TURNOFF”: {
pattern: “Turn your screen OFF in Your Own Language”,
command: “SCREEN_TURNOFF”
},
“SCREEN_TURNON”: {
pattern: “Turn your screen ON in Your Own Language”,
command: “SCREEN_TURNON”
}
},
commands: {
“SCREEN_TURNOFF”: {
soundExec: {
chime: “close”,
},
shellExec: {
exec: “echo ‘standby 0’ | cec-client -s”
}
},
“SCREEN_TURNON”: {
soundExec: {
chime: “open”,
},
shellExec: {
exec: “echo ‘on 0’ | cec-client -s”
}
}
}
}
exports.recipe = recipe // Don’t remove this line.