• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Voice Control on MagicMirror Synology Docker

Scheduled Pinned Locked Moved Hardware
14 Posts 3 Posters 2.8k Views 4 Watching
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.
  • E Offline
    Egnos
    last edited by Egnos Aug 9, 2021, 12:47 PM Aug 9, 2021, 11:02 AM

    Hi guys,
    I was thinking of moving my MagicMirror in my Synology.

    Considering an environment in which the Synology is located far (in the cellar …) from the Raspberry PI, and the Raspberry PI will only manage the browser part:

    • How would speech recognition modules work?
    • Where should the microphone and speakers be connected?
    • Where should the RIP be connected to detect presence?
    • What are the advantages of this setup?

    Thanks and good holidays!

    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

    S 1 Reply Last reply Aug 9, 2021, 1:03 PM Reply Quote 0
    • S Offline
      sdetweil @Egnos
      last edited by sdetweil Aug 9, 2021, 1:04 PM Aug 9, 2021, 1:03 PM

      @egnos I think u don’t use the pi hardware in this

      you use docker on the synology system, to run a container with Linux and mm

      https://forum.magicmirror.builders/topic/9120/synology-docker-tutorial/4?_=1628512900950

      now. I don’t know how to answer the specific questions.

      without the pi hardware there are no gpio pins.
      so PIR becomes a problem.
      I don’t know how u assign the USB mic to the container. maybe u don’t have to.

      u can run docker on the pi to test without modifying your existing mm instance.

      u want to use this docker setup
      https://hub.docker.com/r/karsten13/magicmirror/

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Aug 9, 2021, 2:05 PM Reply Quote 0
      • E Offline
        Egnos @sdetweil
        last edited by Aug 9, 2021, 2:05 PM

        @sdetweil said in Voice Control on MagicMirror Synology Docker:

        @egnos I think u don’t use the pi hardware in this

        I would use an RPi connected to a monitor just to view the web page…

        @sdetweil said in Voice Control on MagicMirror Synology Docker:

        without the pi hardware there are no gpio pins.
        so PIR becomes a problem.

        I think so too.

        @sdetweil said in Voice Control on MagicMirror Synology Docker:

        I don’t know how u assign the USB mic to the container. maybe u don’t have to.

        Why don’t I have to?
        How would I send voice commands to the MM contained in the Synology?

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

        S 1 Reply Last reply Aug 9, 2021, 2:23 PM Reply Quote 0
        • S Offline
          sdetweil @Egnos
          last edited by sdetweil Aug 9, 2021, 2:25 PM Aug 9, 2021, 2:23 PM

          @egnos ok, so you would run MM in server mode… no UI locally

          where would mic be located? where pi is located?
          — someone posted a while back about using server side voice reco …
          https://forum.magicmirror.builders/topic/14499/mmm-googleassistant-in-server-mode/10?page=1

          then PIR would be here too… don’t know how to remote this from UI PI to server on the synology server

          ‘assign’ usb to docker container was what I said maybe you don’t have to do, the container might see it…

          but the mic is on the front end and the server is on the other side of the room (or upstairs, ie, not side by side with PI running UI)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            Egnos
            last edited by Aug 9, 2021, 2:46 PM

            @sdetweil said in Voice Control on MagicMirror Synology Docker:

            @egnos ok, so you would run MM in server mode… no UI locally

            Yes!

            Thanks @sdetweil for the post, I just read but in my opinion @martinhood’s solution is not very stable.

            At this point I was thinking of a solution like this:

            • With Google Home / Alexa Echo Dot positioned near the RPi Client, I send voice commands to the MM Server in the Synology (I don’t know how to do it …)
            • MM Server in Synology respond to requests (MM switch page, MM turn on, MM turn off, MM youtube, etc …).
            • MM Server, MM Client and Google Home / Alexa Echo Dot connected in the same network with router

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            S 1 Reply Last reply Aug 9, 2021, 3:18 PM Reply Quote 0
            • S Offline
              sdetweil @Egnos
              last edited by sdetweil Aug 9, 2021, 3:19 PM Aug 9, 2021, 3:18 PM

              @egnos said in Voice Control on MagicMirror Synology Docker:

              MM Server in Synology respond to requests (MM switch page, MM turn on, MM turn off, MM youtube, etc …).

              no… in server mode that code is not running. those are web page components of the modules, so only running on the PI browser…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Aug 10, 2021, 10:10 AM Reply Quote 0
              • E Offline
                Egnos @sdetweil
                last edited by Aug 10, 2021, 10:10 AM

                @sdetweil said in Voice Control on MagicMirror Synology Docker:

                no… in server mode that code is not running. those are web page components of the modules, so only running on the PI browser…

                If I understand correctly, when the MM is in “Server Mode” inside the Synology, it is not possible to send requests and therefore not receive replies? Correct?

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                S 1 Reply Last reply Aug 10, 2021, 11:12 AM Reply Quote 0
                • S Offline
                  sdetweil @Egnos
                  last edited by Aug 10, 2021, 11:12 AM

                  @egnos well, voice reco and PIR support run on the server side of mm.

                  their module design assumes the hardware is near the user, which makes the server side near the user. PIR requires use of the gpio pins on pi, or physical connections on an Arduino processor.

                  so to have the input devices near the user (mm browser only) and processing on the synology server (mm server in docker) somewhere else will require quite a bit of re-engeneering, and still some additional hardware for PIR type sensors

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C E 2 Replies Last reply Aug 10, 2021, 1:24 PM Reply Quote 0
                  • C Offline
                    cyberphox @sdetweil
                    last edited by Aug 10, 2021, 1:24 PM

                    I run mine in Docker on my Synology. Use a pi behind the mirror for viewing with PIR hooked up to it.

                    As for voice, yeah you might be outta luck there.

                    Full time Dad, DJ and entertainer and lover of technology.

                    S E 2 Replies Last reply Aug 10, 2021, 1:26 PM Reply Quote 0
                    • S Offline
                      sdetweil @cyberphox
                      last edited by Aug 10, 2021, 1:26 PM

                      @cyberphox said in Voice Control on MagicMirror Synology Docker:

                      Use a pi behind the mirror for viewing with PIR hooked up to it.

                      so you use a python script to handle PIR screen on/off, not a MagicMirror module, right?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      C 1 Reply Last reply Aug 12, 2021, 10:48 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        4/14
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy