Well, Finally worked, :)
here is my recipe for others to try
var recipe = {
transcriptionHooks: {
"imBackHome": {
pattern: "I am back home",
command: "playVideo"
}
},
commands: {
"playVideo": {
shellExec: {
exec: "vlc --play-and-exit -f /path_to_file/modules/recipe/video1.mp4",
// This command will play the video using VLC.
}
}
}
};
exports.recipe = recipe;
If you want the vlc to just play the video without exiting, just remove " --play-and-exit".
Happy mirroring,