command
will be the main job of all Hooks (transcriptionHook, action, plugin, responseHook)commands: {
"COMMAND_1": {
notificationExec: {
notification: "EXT-Alert",
payload: {type:"information", message:"This is a test." }
}
},
...
}
notificationExec
: emitting notification.
notification
: string || (param, from)=>payload
: object || variables || (param, from)=>shellExec
: execution shell command or shell script. (e.g. python script for LED)
exec
: string || (param, from)=>options
: string || (param, from)=>moduleExec
: Accessing specific module(s) to control module directly,
module
: string || Array of string || (param, from)=>exec
: (module, param, from)=>{}soundExec
:
chime
: string (open or close)sound
: string (your personal file)commands: {
"COMMAND_1": {
notificationExec: {
notification: "EXT-Alert",
payload: {type:"information", message:"This is a test." }
}
},
...
}
commands: {
"COMMAND_1": {
notificationExec: {
notification: (params, from)=> {
if (from === "HOOK_1") {
return "EXT-Alert"
} else {
return "SOME_NOTIFICATION"
}
}
payload: (params, from)=> {
...
return { ... }
}
}
},
...
}
from
would be the name/id of trigger. It could be derived from transcriptionHooks, responseHooks, actions, plugins.
params
would be various result of each trigger. For example, params
will be a result of regular expression matching when it came from transcriptionHook
or responseHook
.
chime
play official google open / close beepchime: "open"
for open
chime: "close"
for close
chime
play official google open / close appchime: "opening"
for simulate an opening app
chime: "closing"
for simulate an closing app
sound
play your personal soundsound: "my_sound.mp3"