Read the statement by Michael Teeuw here.
Voice Control on MagicMirror Synology Docker
-
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!
-
@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/ -
@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? -
@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=1then 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)
-
@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
-
@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…
-
@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?
-
@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
-
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.
-
@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?