@Jeff
Lets see if i can make a complete list for you.
Step 1. cd in your MagicMirror/module folder then git clone the modul ( https://github.com/alexyak/voicecontrol.git )
Step 2. cd in the voice module and install dependencies ( sudo apt-get install python-pyaudio python3-pyaudio sox )
Step 3. Create snowboy files and copy them into the ( im not sure which works i copied them in 3 placed) 1. voice control module 2. mm-music-player module and MagicMirror folder
Step 4. cd into your mm-music-player and sudo nano mm-music-player.js add following lines after this lines:
start: function() {
Log.info("Starting module: " + this.name);
},
->> Add this
notificationReceived: function(notification, payload, sender) {
if (notification === “PLAY”){
var playButton = document.getElementById(‘play-button’);
playButton.click();
if (notification === “STOP”){
var pauseButton = document.getElementById(‘pause-button’);
pauseButton.click();
then go down to
playButton.className = "play";
playButton.innerHTML = '<i class="fa fa-play" aria-hidden="true"></i>';
playButton.id = ‘play-button’;
pauseButton.className = "pause";
pauseButton.innerHTML = '<i class="fa fa-pause" aria-hidden="true"></i>';
pauseButton.id = ‘pause-button’;
Then cd in your MagicMirror config and sudo nano config.js
and add the following lines
{
module: ‘voicecontrol’,
position: ‘bottom_right’,
config: {
models: [
{
keyword: “play music”, // keyword
description:
file: “yourfile.pmdl”,
message: “PLAY”,
},
{
keyword: “stopmusic”, // keyword
description:
file: “yourfile.pmdl”,
message: “STOP”
},
This should be all.
If it doesn’t work, feel free to write me a PM.
greez GinSeng