Fork me on GitHub

Text To Speech

Submitted by enrico.nicoletti on 2011, May 22 - 11:30
Your rating: None Average: 4 (3 votes)
text to speech icon
Driver
Development Status: 
Beta Version
Developer: 
enrico.nicoletti
Tested on: 
Linux
Windows
Download Link: 
Download Link: 
Short Description: 

A TTS plugin to convert text to sound. It is based on the eSpeak Speech Synthesizer. You can make your home say what is happening inside. IT WORKS ONLY WITH ORACLE JDK

What it does

This plugin can be used to speak any text after an event occurs. It is completely programmable using the automations system (if this then say that).

How to install

You can install as usual from menu Plugins -> Install from marketplace. For more info take a look at the users tutorial.

Automations examples

Text to speech plugin comes with this predefined commands which can be attached to a trigger to create an automation (if you don't know how to do read this chapter of the tutorial):

  • say current time
  • say current temperature of the termometer
  • say electric device status
  • say door/window status
  • say readed motion level

this commands can be attached to any trigger to creates automations like:

  • "if an object is clicked" -> "say electric device status"
  • "a door becomes open" -> "say door/window status"
  • ...and so on

How to create new custom commands

Right click on an object and switch to automations tab. In command box write " say current time" or any other say something command, so you can use it as a template for yours. Click the edit button. In the next window change the say property according to your needs (remembed you can use token substitution to insert variables like @event.object.name). Save as new command. Now your command will be available to be used in automations.

How to install better, natural sounding voices

(available from freedomotic 5.4 - compatible only with oracle jdk not with openjdk)

Default voices has a very metallic sound. To have more natural sounding voices 

  1. go to the mbrola project website and download the mbrola executable for your operative system (under "getting the mbrola binary"). For Linux download from here. For Windows download from here 
  2. unzip the downloaded archive
  3. rename the mbrola-SOMETHING executable in "mbrola" (for Linux pc the file is named mbrola-linux-i386)
  4. put the renamed executable (or mbrola.exe for Windows) into YOUR_FREEDOMOTIC_FOLDER/plugins/devices/it.freedomotic.freetts/data/voices
  5. put the voice folders (e.g. us1, us2, etc) into YOUR_FREEDOMOTIC_FOLDER/plugins/devices/it.freedomotic.freetts/data/voices
  6. open the plugin manifest file from Plugins->Configure and set the <mbrola-voice> key to the voice you want to use (e.g. mbrola_us1, mbrola_us2 etc)
  7. start Freedomotic :)

Video

1 comment

mrodseth's picture

sonos

Submitted by mrodseth on 2013, April 14 - 10:52.

hi sorry for my bad english

is possible to use freedomotic on a raspberry pi to post tts anouncement from raspberry pi to sonos? this is the only thing thats holding me back for going freedomotic on a rasberry al the way

 

 

 

 

Open Source Internet of Things Framework Drupal theme by Kiwi Themes.