<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A model that play a video or mp3 file from local drive, based on a Google Assistant command ?]]></title><description><![CDATA[<p dir="auto">Hello<br />
I hope anyone can help me,<br />
I want a method, or a model So when I Say Jarvis play “the name of file” Google Assistant “Jarvis in my case will play the vdeio”.</p>
<p dir="auto">Please any hints?</p>
<p dir="auto">Thank you so much</p>
]]></description><link>https://forum.magicmirror.builders/topic/18287/a-model-that-play-a-video-or-mp3-file-from-local-drive-based-on-a-google-assistant-command</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 17:50:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18287.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Dec 2023 21:23:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 15:33:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> great news… thanks for the feedback.</p>
]]></description><link>https://forum.magicmirror.builders/post/113604</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113604</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 26 Dec 2023 15:33:38 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 15:30:05 GMT]]></title><description><![CDATA[<p dir="auto">Well, Finally worked, :)<br />
here is my recipe for others to try</p>
<pre><code>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;

</code></pre>
<p dir="auto">If you want the vlc to just play the video without exiting, just remove " --play-and-exit".</p>
<p dir="auto">Happy mirroring,</p>
]]></description><link>https://forum.magicmirror.builders/post/113603</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113603</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Tue, 26 Dec 2023 15:30:05 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 13:52:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> ok, then you have to work on the front side making sure the voice phrase is recognized</p>
<p dir="auto">Jarvis (or whatever hot word you picked)<br />
“I’m back home”</p>
<p dir="auto">words with contractions (“I’m”)  are particularly hard to match</p>
<p dir="auto">start w something simple, “play video”</p>
]]></description><link>https://forum.magicmirror.builders/post/113602</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113602</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 26 Dec 2023 13:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 13:47:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/113600">A model that play a video or mp3 file from local drive, based on a Google Assistant command ?</a>:</p>
<blockquote>
<p dir="auto">vlc -f file:///home/MagicMirror/video1.mp4</p>
</blockquote>
<p dir="auto">Thank you, Sam,</p>
<p dir="auto">Actually , It worked, the command execute the mp4 file,</p>
]]></description><link>https://forum.magicmirror.builders/post/113601</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113601</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Tue, 26 Dec 2023 13:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 13:22:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> that didn’t answer the question.</p>
<p dir="auto">does the whole command you have in the recipe work</p>
<pre><code>vlc -f file:///home/MagicMirror/video1.mp4
</code></pre>
<p dir="auto">or the cvlc command as it suggests</p>
]]></description><link>https://forum.magicmirror.builders/post/113600</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113600</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 26 Dec 2023 13:22:18 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Tue, 26 Dec 2023 12:45:42 GMT]]></title><description><![CDATA[<p dir="auto">Ah, Now I uderstand , acutally yes, It open the vlc have a look</p>
<pre><code>
r:~/MagicMirror$ vlc
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000555bf0104640] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000555bf01a52d0] main playlist: playlist is empty


</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/113599</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113599</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Tue, 26 Dec 2023 12:45:42 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Mon, 25 Dec 2023 17:07:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> open a terminal window and<br />
enter the vlc command you supplied in the recipe</p>
<p dir="auto">does that work?</p>
<p dir="auto">if not then it won’t work from the recipe either.</p>
<p dir="auto">I don’t know how to play video or music from the terminal window by command, so I can’t help you there.  but the recipe is how you connect ga to doing things like this.</p>
]]></description><link>https://forum.magicmirror.builders/post/113588</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113588</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 25 Dec 2023 17:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Mon, 25 Dec 2023 16:36:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Not sure, I understand your question, the vlc doesnt work, I use ubuntu for my mirror<br />
I just removed the username</p>
]]></description><link>https://forum.magicmirror.builders/post/113587</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113587</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Mon, 25 Dec 2023 16:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Mon, 25 Dec 2023 12:49:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> does the  vlc command work?<br />
and you are logged on as the user MagicMirror</p>
]]></description><link>https://forum.magicmirror.builders/post/113583</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113583</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 25 Dec 2023 12:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Mon, 25 Dec 2023 10:27:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you so much for your answer,</p>
<p dir="auto">Actually, I tried, many times, but nothing worked,</p>
<p dir="auto">Please have a look</p>
<pre><code>var recipe = {
    transcriptionHooks: {
        "imBackHome": {
            pattern: "I'm back home",
            command: "playVideo"
        }
    },

    commands: {
        "playVideo": {
            shellExec: {
                exec: "vlc -f file:///home/MagicMirror/video1.mp4"
                
            }
        }
    }
};

exports.recipe = recipe;

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/113579</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113579</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Mon, 25 Dec 2023 10:27:34 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Sun, 24 Dec 2023 02:41:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> the recipes look pretty straight forward. but there is not one that does what you want.</p>
<p dir="auto">so you have to make/invent  one</p>
<p dir="auto">of course  one has know what to do when the voice command comes in<br />
.where does the video or music come from? local disk? so you need the filename</p>
<p dir="auto">from the web?  how did that happen? was there a search?</p>
<p dir="auto">what plays that?  how do you invoke it.</p>
]]></description><link>https://forum.magicmirror.builders/post/113554</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113554</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 24 Dec 2023 02:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Sat, 23 Dec 2023 19:38:10 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Sam very much for your reply,</p>
<p dir="auto">Would you please explain about the recipe folder method, because I tried it many times, and nothing works,</p>
<p dir="auto">I want to say to GA by example, Jarvis, Good morning, and Jarvis respond with that small video.</p>
<p dir="auto">Very simple yet Can’t find a model or method to do it.</p>
<p dir="auto">Thank you very much</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.magicmirror.builders/post/113545</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113545</guid><dc:creator><![CDATA[alexmann]]></dc:creator><pubDate>Sat, 23 Dec 2023 19:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to A model that play a video or mp3 file from local drive, based on a Google Assistant command ? on Wed, 20 Dec 2023 23:59:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alexmann" aria-label="Profile: alexmann">@<bdi>alexmann</bdi></a> well hints, see the recipes folder. a recipe takes a voice utterance and then does something.</p>
<p dir="auto">do you have a command that will play a video?<br />
or music?</p>
]]></description><link>https://forum.magicmirror.builders/post/113519</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113519</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 20 Dec 2023 23:59:49 GMT</pubDate></item></channel></rss>