Read the statement by Michael Teeuw here.
Voicecontrol interaction with compliments
-
Hi, I am using the voicecontrol by alexya and I am trying to display a message on the mirror after saying a hotword. Because this is a one-time thing, I figured I could use the compliments module to display the message.
I have downloaded the .pmdl file from Snowboy, but I still struggle to implement the code in the compliments module.
This is how my config file looks like:{ module: 'voicecontrol', position: 'bottom_left', config: { models: [ { keyword: "Test", // keyword description: "Say 'Test", file: "Test.pmdl", // trained model file name message: "PLAY_MUSIC" // notification message that's broadcast in the MagicMirror app }, ] } },Obvously I know
PLAY_MUSICis incorrect, but I still havent found out what the correct command would be to display the message in the compliments module.Also if I understood it correctly the following code is suppsoed to go within the compliments.js file.
notificationReceived: function(notification, payload, sender) { if (notification === "Test"){ this.media.play(); } },What should I replace with
PLAY_MUSICandthis.media.play();to display a message from the compliments module ?And how do I specify what kind of message that get displayed?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login