Read the statement by Michael Teeuw here.
Voice Controlled Wake/Sleep Function
-
This post is deleted! -
@chengstark Did you get any closer than I did? Let’s call on @alexyak and see if he can shed some light.
-
@jeremytripp i didnt get any closer, im still waiting for my new mic to be delivered from amazon
-
@jeremytripp So, just to confirm you’d like to activate/deactivate the mirror with voice commands without walking into the room, right? I don’t see anything glaringly wrong with the code except for potential conflicts such as the scenario when you’re in the room where the mirror is and you say “Go to sleep”, the monitor will be switched off, but when you start moving it will switch on again via the motion detector.
-
@alexyak That’a a great point – hadn’t considered that conflict. I wonder if that’s what is preventing the voice commands from working in the first place.
As an aside, I could probably solve that with a quick global variable Boolean to select whether to use voice or motion, essentially only allowing one to be on at a time (with an ‘if’ wrapper to check if true/false). Might be more complicated than it’s worth though.
Fundamentally I’m just wondering where you’re writing your functions for any new voice commands you set up. As a basic example, if I wanted to create a new voice command that just showed some “Hello World” text when I gave it some verbal command, how would you set that up?
- Train pmdl model, drop in MM root
- Add keyword info to config defaults in voicecontrol.js
- Then what? I’ve seen the function itself written in a separate module like camera.js is, in node_helper.js like motion detector is, etc. What’s your suggested best practice?
-
@jeremytripp So the idea behind the voice control module is that it’s responsible for recognition of the command and sending a global notification to any other module interested in this.
As for the module that you’re describing like displaying some text based on the command I would recommend creating a separate module in which to listen to this specific message and doing what you need it do.
-
Hey guys I’m pretty new to this whole magic mirror thing. I don’t want my mirror on all the time so I wanted to turn the display on and off with my voice. This is the only post I could find trying to accomplish that. So once i get the Voice Control module from alexyak working, how do I get this to work? I’m confused as to where to put the files.