Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Voice command to open videos

    Development
    3
    3
    79
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dolluhbillz last edited by

      I have seen a few posts that I thought were going to the same place I was and then veered off to the left. I have something I want to do with my mirror, but I’m not quite sure how to get there.
      I am looking for a way to use a voice command (preferably offline, but accuracy counts for more) to open a video file that I locally store on my device. For example I want to say: “hey magic mirror, show me ‘video 1’” and have video one play. After it’s done I’d like it to go back to the standby screen, but that really seems like the little fish in this pond.
      I looked at Hello Lucy, which I like because I found the phonetic file, but this module opens other modules. I’m not sure how to code it (if possible) to just play a video from a folder with a magic mirror player and then time out the player and bring it back to the main screen (say, the clock).
      Anyone have any insight?

      1 Reply Last reply Reply Quote 0
      • B
        bigjojo last edited by

        Hello,
        I use GA assistant from bugsounet who no longer posts on this forum because he made his own forum, see on his github.
        I made a recipe which allows me to run the raspbian vlc in full screen. which allows me to either launch a video (christmas tree or halloween) but especially watch the streaming stream from my dreambox directly on the mirror. when i stop looking i just say jarvis stop vlc and he comes back to the mirror.
        I put an example of my recipe so you can have fun.
        I speak French so see to change the sentences in your language.
        bye.
        var recipe = {
        transcriptionHooks: {
        “miroir vidéo”: {
        pattern: “regarder miroir vidéo”,
        command: “miroir_vidéo”
        },
        “rtsun”: {
        pattern: “regarder rts1”,
        command: “rtsun”
        },“stop_vlc”: {
        pattern: “stopper vlc”,
        command: “stop_vlc”
        },
        },

        commands: {
        “miroir_vidéo”: {
        soundExec: {
        chime: “close”,
        },
        shellExec: {
        exec: “vlc -f file:///home/pi/MagicMirror/video/02.mp4”
        }
        },
        “rtsun”: {
        soundExec: {
        chime: “close”,
        },
        shellExec: {
        exec: “vlc -f http://...:****/1:0:19:4333:300C:13E:820000:0:0:0:”
        }
        },
        “stop_vlc”: {
        soundExec: {
        chime: “close”,
        },
        shellExec: {
        exec: “killall vlc”
        },
        },
        }

        }

        exports.recipe = recipe // Don’t remove this line.

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil last edited by

          the path to local videos for url loading is

          http://localhost:port/modules/???/videofile.name

          note they have to be in the mm modules folder tree to be able to use the mm server to load them

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy