Voice control & AI module for MagicMirror using OpenJarvis. You can use it just like you do with Siri, Google, Alexa etc. It can understand all the words quite ok and is very customisable. OpenJarvis offers a nice place where you can download plugins to customise your setup even more.
This module depends on OpenJarvis & Jarvis-MagicMirror Plugin. Before proceding to installing this module please install OpenJarvis and Jarvis-MagicMirror module.
- Install OpenJarvis.
Follow the tutorial at https://www.openjarvis.com/content/installation
- Install Jarvis-MagicMirror Plugin.
Follow the tutorial at https://github.com/merceaemil/jarvis-magicmirror
Navigate into your MagicMirror's modules folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/merceaemil/MMM-Jarvis-Voice-Control
To activate the module, you need to add the following data to config.js.
{
module: 'MMM-Jarvis-Voice-Control',
position: 'bottom_center'
}
You can use this with any module by making the following two changes:
- To add voice commands to your module you have to add the notificationReceived method (if does not exist already) inside your module main JS file.
...
notificationReceived: function(notification, payload){
},
...
- You have to define what voice commands do for your module inside the notificationReceived method:
...
notificationReceived: function(notification, payload){
....
if (notification === "VOICE_COMMAND" && payload=="start music"){
// Do something here.
// For example: this.playMusic();
}
if (notification === "VOICE_COMMAND" && payload=="end music"){
// Do something here.
// For example: this.endMusic();
}
....
},
...