node-red-contrib-tts-ultimate 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.paypal.me/techtoday)
|
|
4
4
|
|
|
5
|
+
<p>
|
|
6
|
+
<b>Version 1.0.37</b> December 2021<br/>
|
|
7
|
+
- Removed some unwanted startup logs.<br/>
|
|
8
|
+
<p>
|
|
5
9
|
<p>
|
|
6
10
|
<b>Version 1.0.36</b> November 2021<br/>
|
|
7
11
|
- NEW: Autosplit function: you can now set the maximum lenght of the text-parts, in case your spoken text is too long for the allowed TTS Engine limits.<br/>
|
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ Don't delete the files cached. Useful if you wish to keep the tts files, even in
|
|
|
129
129
|
**Autosplit max length
|
|
130
130
|
<br/>
|
|
131
131
|
Due to some limitations in text lenght, applied by the online TTS Engines, TTS-Ultimate is capable to split your long text to be spoken, in shorter texts in an intelligent way.<br/>
|
|
132
|
-
This field allow you to set the maximum lenght of each splitted text part. The default is **220** and is OK for most cases. You can change this valut to whatever you want but keep in mind, that your TTS engine can either cut the text or return an error, if the text is too long. As the cached filename is equal to the text being spoken, you could also hit the maximum filename lenght of your filesystem. So keep the default value, unless you absolute need to change it.<br/>
|
|
132
|
+
This field allow you to set the maximum lenght (**in chars**) of each splitted text part. The default is **220** and is OK for most cases. You can change this valut to whatever you want but keep in mind, that your TTS engine can either cut the text or return an error, if the text is too long. As the cached filename is equal to the text being spoken, you could also hit the maximum filename lenght of your filesystem. So keep the default value, unless you absolute need to change it.<br/>
|
|
133
133
|
<br/>
|
|
134
134
|
<br/>
|
|
135
135
|
|
|
@@ -272,17 +272,19 @@ The property is a JSON object.
|
|
|
272
272
|
<img src='https://github.com/Supergiovane/node-red-contrib-tts-ultimate/raw/master/img/setConfig.png' width="80%">
|
|
273
273
|
|
|
274
274
|
**msg.setConfig**<br/>
|
|
275
|
-
This is the property where you can set all the things. It must be
|
|
275
|
+
This is the property where you can set all the things. It must be a JSON Object with the below specified properties.<br/>
|
|
276
|
+
The setting is retained until the node receives another msg.setConfig or until node-red is restarted.<br/>
|
|
276
277
|
|
|
277
|
-
**setMainPlayerIP**<br/>
|
|
278
|
-
Sets the main player IP. This will also be the coordinator if you have a group of players
|
|
278
|
+
> **property setMainPlayerIP**<br/>
|
|
279
|
+
Sets the main player IP. This will also be the coordinator if you have a group of players.
|
|
279
280
|
|
|
280
|
-
**setPlayerGroupArray**<br/>
|
|
281
|
-
Sets the array of players beloging to the group, if any.<br/>
|
|
282
|
-
If you have only one additional player, you need to ever put it into an array. See below.
|
|
281
|
+
> **property setPlayerGroupArray**<br/>
|
|
282
|
+
Sets the array of players beloging to the group, if any.<br/>
|
|
283
|
+
If you have only one additional player, you need to ever put it into an array. See below.
|
|
283
284
|
|
|
284
285
|
```js
|
|
285
|
-
// Set player IP
|
|
286
|
+
// Set main player IP
|
|
287
|
+
// The setting is retained until the node receives another msg.setConfig or until node-red is restarted.
|
|
286
288
|
var config= {
|
|
287
289
|
setMainPlayerIP:"192.168.1.109"
|
|
288
290
|
};
|
|
@@ -292,6 +294,7 @@ return msg;
|
|
|
292
294
|
|
|
293
295
|
```js
|
|
294
296
|
// Set player IP and additional players
|
|
297
|
+
// The setting is retained until the node receives another msg.setConfig or until node-red is restarted.
|
|
295
298
|
var config= {
|
|
296
299
|
setMainPlayerIP:"192.168.1.109",
|
|
297
300
|
setPlayerGroupArray:[
|
|
@@ -306,6 +309,7 @@ return msg;
|
|
|
306
309
|
|
|
307
310
|
```js
|
|
308
311
|
// If you have only one additional player
|
|
312
|
+
// The setting is retained until the node receives another msg.setConfig or until node-red is restarted.
|
|
309
313
|
var config= {
|
|
310
314
|
setMainPlayerIP:"192.168.1.109",
|
|
311
315
|
setPlayerGroupArray:["192.168.1.110"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-tts-ultimate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"description": "Transforms the text in speech and hear it using Sonos player or generate an audio file to be used with third parties nodes. Works with voices from Amazon, Google (without credentials as well), Microsoft TTS Azure, or your own voice. You can also only create a TTS file to be read by third party nodes. Update of the popular SonosPollyTTS node.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"google",
|
|
17
17
|
"voice",
|
|
18
18
|
"amazon",
|
|
19
|
+
"azure",
|
|
19
20
|
"tts",
|
|
20
21
|
"sonos",
|
|
21
22
|
"IOT",
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
</div>
|
|
216
216
|
|
|
217
217
|
<div class="form-row">
|
|
218
|
-
<label for="node-config-input-limitTTSFilenameLenght"><i class="fa fa-file"></i> Autosplit max length</label>
|
|
218
|
+
<label for="node-config-input-limitTTSFilenameLenght"><i class="fa fa-file"></i> Autosplit max length (chars)</label>
|
|
219
219
|
<input type="text" id="node-config-input-limitTTSFilenameLenght">
|
|
220
220
|
</div>
|
|
221
221
|
|
|
@@ -97,7 +97,7 @@ module.exports = function (RED) {
|
|
|
97
97
|
RED.log.warn("ttsultimate-config " + node.id + ": Polly service disabled. " + error.message)
|
|
98
98
|
}
|
|
99
99
|
} else {
|
|
100
|
-
RED.log.
|
|
100
|
+
//RED.log.info("ttsultimate-config " + node.id + ": Polly service not used.");
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
@@ -118,7 +118,7 @@ module.exports = function (RED) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
} else {
|
|
121
|
-
RED.log.
|
|
121
|
+
// RED.log.info("ttsultimate-config " + node.id + ": Google TTS service not used.");
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
|
|
@@ -128,10 +128,10 @@ module.exports = function (RED) {
|
|
|
128
128
|
try {
|
|
129
129
|
node.googleTranslateTTS = GoogleTranslate;
|
|
130
130
|
} catch (error) {
|
|
131
|
-
RED.log.
|
|
131
|
+
//RED.log.info("ttsultimate-config " + node.id + ": Google Translate free service not used.");
|
|
132
132
|
}
|
|
133
133
|
} else {
|
|
134
|
-
RED.log.
|
|
134
|
+
//RED.log.info("ttsultimate-config " + node.id + ": Google Translate free service not used.");
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
|
|
@@ -202,7 +202,7 @@ module.exports = function (RED) {
|
|
|
202
202
|
RED.log.warn("ttsultimate-config " + node.id + ": Microsoft AzureTTS service disabled. " + error.message)
|
|
203
203
|
}
|
|
204
204
|
} else {
|
|
205
|
-
RED.log.
|
|
205
|
+
//RED.log.info("ttsultimate-config " + node.id + ": Microsoft AzureTTS service not used. ");
|
|
206
206
|
}
|
|
207
207
|
// #########################################
|
|
208
208
|
|