Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-sonospollytts

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-sonospollytts

Node-Red TTS with Sonos and Amazon Polly

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

Node-Red

Quality Node-Red nodes

This node uses Polly TTS api and Node Sonos api.

This is a very early alpha, so use at your own risk!

USE: Set the configuration of Polly (you need the free Amazon AWS credentials), then set your Sonos IP Address (Sonos doesn't allow to set a fixed IP to the sonos's device, so you need to reserve an IP using the DHCP Reservation function of your router/firewall's DHCP Server).

Send to the node, a payload with the text you want to speed out. For example {payload:"Hello there!"}.
You can send multiple messages at once. The node will handle the queue.


Known issues:
If the Sonos device is set to LineIn, TVin or other physical input, the node doesn't work. You need to play something via Sonos App, then stop the play. Then the node will work again
If some music is playing, the node will wait for the music to stop, before playing the TTS message.


SAMPLE FLOW:
[ { "id": "2a7223f6.d28e0c", "type": "tab", "label": "Flow 1", "disabled": false, "info": "" }, { "id": "7948293a.159a68", "type": "inject", "z": "2a7223f6.d28e0c", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 70, "y": 120, "wires": [ [ "140491c3.4c7e0e" ] ] }, { "id": "140491c3.4c7e0e", "type": "function", "z": "2a7223f6.d28e0c", "name": "", "func": "node.send({payload:\"Ciao, volevo dire una cosa molto importante. Sa, la dico lostesso, vado? Si, vado. Io sono una riga molto lunga e posso avere lo stato playing\"});\nnode.send({payload:\"Riga12\"});\nnode.send({payload:\"Altra riga molto lunga, con stato playing sicuramente trappato. Altrimenti va da via i ciap.\"});", "outputs": 1, "noerr": 0, "x": 210, "y": 120, "wires": [ [ "4e75a6d3.bc73c8" ] ] }, { "id": "4e75a6d3.bc73c8", "type": "sonospollytts", "z": "2a7223f6.d28e0c", "name": "", "voice": "0", "ssml": false, "dir": "/tmp", "sonosipaddress": "192.168.1.109", "noderedipaddress": "192.168.1.131", "noderedport": "1880", "config": "ea5ffe92.83e9", "x": 420, "y": 140, "wires": [] }, { "id": "ea5ffe92.83e9", "type": "sonospollytts-config", "z": "", "name": "bbb" } ]

Keywords

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc