Giter Site home page Giter Site logo

mmm-voice-control's Introduction

MMM-Voice-Control

Magic Mirror Module - Voice Control

This an extension for the MagicMirror to allow use of voice commands. Currently it is a very minimal module with support only for MMM-Dublin-Bus

Installation

  1. Navigate into your MagicMirror's modules folder
  2. Execute git clone https://github.com/dr4ke616/MMM-Voice-Control.git
  3. Execute npm install in that folder to download external libraries
  4. Navigate back to MagicMirror's root directory
  5. Start magic mirror

Supported Commands:

  • Go to sleep
  • Wake up
  • Dublin bus

Using the module

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

modules: [
    {
        module: 'MMM-Voice-Control',
        position: 'lower_third', // If you want to see the prompt and recognised speech, omit otherwise
        config: {
            // See 'Configuration options' for more information.
        }
    }
]

Configuration Options

The following properties can be configured:

	<tr>
		<td><code>language</code></td>
		<td>The language used.<br>
			<br><b>Example:</b> <code>en</code>
			<br><b>Default value:</b> <code>en</code>
		</td>
	</tr>

	<tr>
		<td><code>voiceTextRestTimeout</code></td>
		<td>Tell the module to restart its listening process. Lower the value means it could reset mid sentence. Higher, means it could take longer time between each speech attempt.<br>
			<br><b>Possible Values:</b> <code>int</code> value
			<br><b>Default value:</b> <code>3000</code> (3 seconds)
		</td>
	</tr>

	<tr>
		<td><code>listOfCommandsNotificationTime</code></td>
		<td>The time in which the "list of commands" notification will be displayed on screen.<br>
			<br><b>Possible Values:</b> <code>int</code>, <code>float</code> value
			<br><b>Default value:</b> <code>10000</code> (10 seconds)
		</td>
	</tr>

</tbody>
Option Description

Extending

Its quite simple to add more custom commands.

  • Add the extra needed local values to any of the files in the MMM-Voice-Control/translations/.
  • The behaviour can then be defined in the MMM-Voice-Control/commands.js file. It is recommended to interface with other modules using MagicMirror's default alert module.

mmm-voice-control's People

Contributors

dr4ke616 avatar mrharcombe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.