<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Voicecontrol interaction with compliments]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">I have downloaded the .pmdl file from Snowboy, but I still struggle to implement the code in the compliments module.<br />
This is how my config file looks like:</p>
<pre><code>{
			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
					},
				]
			}
		},
</code></pre>
<p dir="auto">Obvously I know <code>PLAY_MUSIC</code> is incorrect, but I still havent found out what the correct command would be to display the message in the compliments module.</p>
<p dir="auto">Also if I understood it correctly the following code is suppsoed to go within the <strong>compliments.js</strong>  file.</p>
<pre><code>notificationReceived: function(notification, payload, sender) {
		if (notification === "Test"){
			this.media.play();
		}
	},
</code></pre>
<p dir="auto">What should I replace with <code>PLAY_MUSIC</code> and <code>this.media.play();</code> to display a message from the compliments module ?</p>
<p dir="auto">And how do I specify what kind of message that get displayed?</p>
]]></description><link>https://forum.magicmirror.builders/topic/4276/voicecontrol-interaction-with-compliments</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 20:20:41 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/4276.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Jul 2017 11:07:36 GMT</pubDate><ttl>60</ttl></channel></rss>