@stephen on your remote console, do
ssh to the pi, no gui
cd MagicMirror export DISPLAY=:0 npm start dev
and, of course, you need a monitor on the PI
i modified the pocketsphinx-continuous-node and MMM-voice repos to add the start/stop listening support , at least to get it working…
I have not added any cross module communications yet to invoke it like you wanted…
see the repos on github
MMM-voice change https://github.com/sdetweil/MMM-voice/tree/mic_sharing (old code continues to work as it did unchanged)
pocketsphinx-continuous-node change https://github.com/sdetweil/pocketsphinx-continuous-node
@thestigh so, you want to slide the mic to someone else, and back… fun times…
PSC-node needs a start and stop, separate from constructor, right now the constructor does an implict start
the start does the spawn (save id)
the stop does a kill (id)
then MMM-Voice node helper needs commands to stop and restart/start.
right now its all ‘start’
the PSC on handlers have to be redone on start/restart, cause the background process stdout is closed and reopened on new spawn.
then the MMM-Voice has to have added function to receive request to yield and issue request to obtain control.
there may be some additional recovery work on resumption of listen to the mic after the prior process was killed…(abruptly)
In my MMM-SleepWake module I do module.hide(). Not suspend
I do this cause I cannot turn off/on my TV monitor, and no HDMI signal generates the ugly no input screen
I use a camera for motion detection
@iocean1 what camera… please provide some additional detail