Read the statement by Michael Teeuw here.
A model that play a video or mp3 file from local drive, based on a Google Assistant command ?
-
@alexmann that didn’t answer the question.
does the whole command you have in the recipe work
vlc -f file:///home/MagicMirror/video1.mp4
or the cvlc command as it suggests
-
@sdetweil said in A model that play a video or mp3 file from local drive, based on a Google Assistant command ?:
vlc -f file:///home/MagicMirror/video1.mp4
Thank you, Sam,
Actually , It worked, the command execute the mp4 file,
-
@alexmann ok, then you have to work on the front side making sure the voice phrase is recognized
Jarvis (or whatever hot word you picked)
“I’m back home”words with contractions (“I’m”) are particularly hard to match
start w something simple, “play video”
-
Well, Finally worked, :)
here is my recipe for others to tryvar 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,
-
@alexmann great news… thanks for the feedback.