Text-To-Speech Module for MagicMirror2 using nanoTTS. Forked from MMM-TTS.
-
Clone this repo into
~/MagicMirror/modules
directory. -
Configure your
~/MagicMirror/config/config.js
:{ module: 'MMM-NanoTTS', position: 'top_right', config: { ... } }
-
Run command
npm install
in~/MagicMirror/modules/MMM-NanoTTS
directory. -
Install
nanoTTS
Option | Default | Description |
---|---|---|
lang |
en-US |
The TTS language. |
speed |
1.0 |
The TTS speed. |
pitch |
1.0 |
The TTS pitch. |
debug |
false |
Display text to speech. |
text |
'MMM-TTS' |
Text to display in debug mode, while there's no text to speech. |
To use MMM-NanoTTS in your module you have to send a socket notification like this this.sendNotification('MMM-NanoTTS', 'This is a text to read. Hello World!');
.