GithubHelp home page GithubHelp logo

mmm-text-to-speech's Introduction

MMM-Text-To-Speech

Text-To-Speech module for the MagicMirror².

Prerequisites

  1. It uses external MMM-Sounds module to play sound, so you must install it first.
    • Navigate into your MagicMirror's modules folder and execute git clone https://github.com/jc21/MMM-Sounds.git
  2. If you don't have LAME package on your system, follow the instructions to install it.
  3. Needs the node module es6-promise
    • npm install es6-promise

Using the module

  1. Navigate into your MagicMirror's modules folder and execute git clone https://github.com/ChrisB85/MMM-Text-To-Speech.git
  2. Go to MMM-Text-To-Speech directory and run npm install
  3. Add the following configuration block to the modules array in the config/config.js file:
var config = {
    modules: [
        {
            module: 'MMM-Text-To-Speech',
            config: {
                // See below for configurable options
                ...
                mqttServer: {
                ...
                }
            }
        }
    ]
}
  1. Send notification with text as payload:
this.sendNotification("MMM-Text-To-Speech", "Hello " + payload);

or

this.sendNotification("MMM-TTS", "Hello " + payload);

Configuration options

Option Description
language Optional Speech language. Defaults to en.
speed Optional Speech speed.
soundModuleDir Optional Name of sound module folder. Defaults to MMM-Sounds.
mqttServer Optional MQTT server section:
address Host name or IP address
port Port, defaults to 1883
topic Topic to subscribe to
user Optional User name
password Optional Password

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.