Skip to content
Voice-Control for the MagicMirror based in Google Speech Recognizer (annyang)
JavaScript CSS
Branch: master
Clone or download
Matzefication Matzefication
Matzefication and Matzefication Added language depending wakeUp sentence
Latest commit adcd3bf Mar 2, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css Update MMM-Hello-Mirror.css Feb 27, 2017
translations Update en.json Feb 28, 2017
.gitignore Update .gitignore Feb 27, 2017
LICENSE Create LICENSE Feb 27, 2017
MMM-Hello-Mirror.js Use the annyang web script Mar 2, 2017
README.md Added language depending wakeUp sentence Mar 2, 2017

README.md

MMM-Hello-Mirror

Voice-Control for the MagicMirror based on Google Speech Recognizer (annyang)

This an extension for the MagicMirror to send notifications to other modules on voice commands.

Installation

  1. Navigate into your MagicMirror's modules folder
  2. Execute git clone https://github.com/Matzefication/MMM-Hello-Mirror.git
  3. No npm install is needed
  4. (Re)start magic mirror (e.g. with pm2 restart mm)

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
    {
        module: 'MMM-Hello-Mirror',
        position: 'lower_third',
        config: {
            // See 'Configuration options' for more information.
        }
    }
]

Configuration Options

The following properties can be configured:

Option Description
language The language used.

Valid values:
en
de

Default value: de
voice The voice used.

Valid values:
UK English Female
UK English Male
US English Female
Deutsch Female

Default value: Deutsch Female
animationSpeed Time in milliseconds to show and hide messages.

Default value: 2000

Working with voice commands

A voice command has to start with the wakeUp sentence depending on the selected language (by default Hallo (magischer) Spiegel for german, otherwise Hi (magic) mirror for all other languages) following your individual command. After recognizing a command, a notification will be send to all modules with the following params:

  • notification identifier: VOICE_COMMAND
  • notification payload: the spoken command (without the wakeUp sentence)
You can’t perform that action at this time.