Text-To-Speech Module for MagicMirror2
- An installation of MagicMirror2
- npm
- say
- festival
-
Clone this repo into
~/MagicMirror/modules
directory. -
Configure your
~/MagicMirror/config/config.js
:{ module: 'MMM-TTS', position: 'top_right', config: { ... } }
-
Run command
npm install
in~/MagicMirror/modules/MMM-TTS
directory. -
Run command
sudo apt-get install festival
.
Option | Default | Description |
---|---|---|
debug |
false |
Display text to speech. |
text |
'MMM-TTS' |
Text to display in debug mode, while there's no text to speech. |
voice |
null |
If you want another voice than default you have to install it seperately and then fill in the voice name here. http://www.festvox.org/docs/manual-2.4.0/festival_24.html#Voices |
speed |
1.0 |
How fast the speech should be. |
To use MMM-TTS in your module you have to send a socket notification like this this.sendNotification('MMM-TTS', 'This is a text to read. Hello World!');
.