This plugin is for playing text or a mp3 file on a Google Home or Sonos Device. The plugin uses a text to speech function for playing sentences.
Playing a text or a mp3 file is triggered by the action part of a rule.
The typical command rules are:
- play text “this is a nice text” vol 50 on mychromecast
- play file “nice-music.mp3” vol 25 on mychromecast
- play vol [0-100] on mychromecast
The last command line is for setting the main volume or you could use the optional volume setting per mp3 or text command.
In the plugin you can set the language that is used in the text commands.
Make sure the two are aligned otherwise the Google Home device will sound old fashioned funny.
The plugin is only usable in node v8+ Pimatic systems.
The plugin is available on the plugins page or you can add it in the config
{
"plugin": "sounds"
}
More info on the plugin page
UPDATE v0.0.12
I renamed the SoundsDevice class to CromecastDevice. This makes it more logical and gives the possibility to add for example the Ikea SYMFONISK.
Let me know if this of interest.
If you already use the plugin on (re)startup of the plugin the SoundsDevice Classname in your config.json is automatically converted to ChromecastDevice
UPDATE v0.0.13
Resume of a playing TuneIn stream after the plugin played a text or file
Removed the stop function
UPDATE v0.0.15
Added Sonos (SYMFONISK) devices
Restructered software to support multiple devices
Added device discover
Usage of variables in text string
UPDATE v0.0.20
Stop casting after text or file announcement
Improved media file typing
Adding variable in filename string
UPDATE v0.0.22
Adding variable for volume control
Added group device for combining Sonos and Chromecast devices to an extra device