node-red-contrib-tts-ultimate 3.5.3
Transforms text into speech for Sonos, Google Cast, DLNA/UPnP and AirPlay 2/HomePod playback, or generates audio files for third-party nodes. Supports Google, Google Cloud TTS, ElevenLabs, Voice.ai and custom audio files. Update of the popular SonosPollyT
Text-to-speech for Node-RED with Sonos, Google Cast, DLNA/UPnP, AirPlay 2/HomePod and file-only output.
TTS Ultimate transforms text into speech audio from Node-RED. It can play announcements directly on Sonos speakers, Google Cast devices (Chromecast / Google Nest), generic DLNA/UPnP renderers such as smart TVs and AV receivers, and on AirPlay 2 HomePods. It can also work without player: generate an audio file, cache it, and pass it to other nodes, web pages, Bluetooth workflows or third-party services. With the OwnFile node, you can upload and play your own audio messages and keep selected flows working completely offline.
Description · TTS engines · Players · Features · Configuration · OwnFile
VIEW SAMPLE FLOW CODE
Adjust the nodes according to your setup
[
{
id: "569773ae.930abc",
type: "inject",
z: "344c547c.b230c4",
name: "",
topic: "",
payload: "true",
payloadType: "bool",
repeat: "",
crontab: "",
once: false,
onceDelay: 0.1,
x: 230,
y: 300,
wires: [["e066ce90.46f758"]],
},
{
id: "e066ce90.46f758",
type: "function",
z: "344c547c.b230c4",
name: "Via function",
func: '// The simplest way\nmsg.payload="Benvenuti,Wilkommen,Wellcome!";\nreturn msg;\n',
outputs: 1,
noerr: 0,
x: 370,
y: 300,
wires: [["3d9635bc.53c14a"]],
},
{
id: "c272b47c.41e238",
type: "inject",
z: "344c547c.b230c4",
name: "",
topic: "",
payload: "true",
payloadType: "bool",
repeat: "",
crontab: "",
once: false,
onceDelay: 0.1,
x: 230,
y: 340,
wires: [["2fcffdb7.1c76ea"]],
},
{
id: "2fcffdb7.1c76ea",
type: "function",
z: "344c547c.b230c4",
name: "Set volume",
func: '// Set the Volume\nmsg.volume="60"; // If not set, will take the volume from setting page\nmsg.payload="Benvenuti,Wilkommen,Wellcome!";\nreturn msg;\n\n',
outputs: 1,
noerr: 0,
x: 370,
y: 340,
wires: [["3d9635bc.53c14a"]],
},
{
id: "2bd6fd7f.9b9ae2",
type: "inject",
z: "344c547c.b230c4",
name: "",
topic: "",
payload: "true",
payloadType: "bool",
repeat: "",
crontab: "",
once: false,
onceDelay: 0.1,
x: 230,
y: 380,
wires: [["aa3b6e42.669fc"]],
},
{
id: "aa3b6e42.669fc",
type: "function",
z: "344c547c.b230c4",
name: "Array of messages",
func: '// Create an array of messages\nvar aMessages=[];\n// Add random messages\naMessages.push({volume:"50",payload:"Benvenuti."});\n// Wheater in Italy\naMessages.push({volume:"40",payload:"http://media.ilmeteo.it/audio/2020-12-23.mp3"});\n// Add random messages\naMessages.push({volume:"30",payload:"Cambia la tua voce nei settaggi."});\nreturn [aMessages];\n',
outputs: 1,
noerr: 0,
x: 390,
y: 380,
wires: [["3d9635bc.53c14a"]],
},
{
id: "3e0d9b5c.fe01b4",
type: "inject",
z: "344c547c.b230c4",
name: "Hello World",
topic: "",
payload: "Ciao Mondo! Come stai?",
payloadType: "str",
repeat: "",
crontab: "",
once: false,
onceDelay: 0.1,
x: 250,
y: 260,
wires: [["3d9635bc.53c14a"]],
},
{
id: "42e6fab4.e8d154",
type: "comment",
z: "344c547c.b230c4",
name: "Play text on Sonos. Single player or Group of players",
info: "",
x: 360,
y: 220,
wires: [],
},
{
id: "3d9635bc.53c14a",
type: "ttsultimate",
z: "344c547c.b230c4",
name: "",
voice: "Brian",
ssml: false,
sonosipaddress: "192.168.1.109",
sonosvolume: "30",
sonoshailing: "Hailing_Hailing.mp3",
config: "557d8082.eb5a8",
property: "payload",
propertyType: {},
rules: [],
x: 610,
y: 260,
wires: [[]],
},
{
id: "557d8082.eb5a8",
type: "ttsultimate-config",
z: "",
name: "googletranslate",
noderedipaddress: "192.168.1.219",
noderedport: "1980",
purgediratrestart: "leave",
ttsservice: "googletranslate",
},
];
📘 Documentation
The full documentation is on maxsupervibe.com, together with the help of every other Max Supervibe node.
Release notes: CHANGELOG.md