Text-To-Speech module for MagicMirror².
-
Clone this repo into
~/MagicMirror/modules
directory. -
Configure your
~/MagicMirror/config/config.js
:{ module: 'MMM-TTS', position: 'top_right', config: { readAtStartup: true, speed: 1.0, text: 'Hello, have a great day!' } }
-
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. |
readAtStartup |
true |
If set to true: Read the text when you start the mirror. |
speed |
1.0 |
How fast the speech should be. |
text |
'Your mirror says hello!' |
Text to speak at startup and 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 |
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!');
.