node-red-contrib-tts-ultimate 1.0.46 → 1.0.48
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 +8 -0
- package/README.md +13 -4
- package/package.json +2 -2
- package/ttsultimate/ttsultimate-config.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
[](https://www.paypal.me/techtoday)
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
<p>
|
|
7
|
+
<b>Version 1.0.48</b> Mai 2022<br/>
|
|
8
|
+
- Try to fixe a clunky issue with microsoft azure package, on nodejs versions that are not supported by Microsoft.<br/>
|
|
9
|
+
</p>
|
|
10
|
+
<p>
|
|
11
|
+
<b>Version 1.0.47</b> Mai 2022<br/>
|
|
12
|
+
- Fixed other compatibility issue with some Node version.<br/>
|
|
13
|
+
</p>
|
|
6
14
|
<p>
|
|
7
15
|
<b>Version 1.0.46</b> Mai 2022<br/>
|
|
8
16
|
- Fixed a compatibility issue with Node 18, where a breaking change has been introduced.<br/>
|
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
## DESCRIPTION
|
|
25
|
-
This node transforms a text into a speech audio
|
|
25
|
+
This node transforms a text into a speech audio that you can hear natively via <b>SONOS</b> speakers.<br/>
|
|
26
|
+
You can also generate an audio file for bluetooth speakers, web pages, etc.<br/>
|
|
26
27
|
Uses Amazon Polly (standard and neural engines), Google TTS voices (even without credentials nor registration) and Microsoft TTS Azure voices, and you can use it with **your own audio file** as well and it can be used **totally offline** even without the use of TTS, without internet connection.<br/>
|
|
27
28
|
The node can also create a ***TTS file (without the use of any Sonos device)***, to be read by third parties nodes.<br/>
|
|
28
29
|
This is a major ***upgrade from the previously popular node SonosPollyTTS*** (SonosPollyTTS is not developed anymore).<br/>
|
|
@@ -34,6 +35,7 @@ This is a major ***upgrade from the previously popular node SonosPollyTTS*** (So
|
|
|
34
35
|
* See <a href="https://github.com/Supergiovane/node-red-contrib-tts-ultimate/blob/master/CHANGELOG.md">here the changelog</a>
|
|
35
36
|
|
|
36
37
|
## FEATURES
|
|
38
|
+
* **Native Sonos support**: hear the TTS audio directly via Sonos. You can also group speakers, set an hailing sound, choose the volume of each speaker etc.
|
|
37
39
|
* **Output audio file**: the node can just create the TTS file to be used by other nodes. In this case, you doesn't need to use Sonos as player.
|
|
38
40
|
* **Amazon Voices, Gooogle Translate Voices, Google TTS Voices and Microsoft TTS Azure voices** are all supported, with all avaiables languages and genders.
|
|
39
41
|
* **Automatic grouping** is supported. You can group all players you want to play your announcements.
|
|
@@ -215,9 +217,16 @@ return msg;
|
|
|
215
217
|
```
|
|
216
218
|
|
|
217
219
|
```js
|
|
218
|
-
// Play
|
|
219
|
-
msg.sonoshailing = "
|
|
220
|
-
msg.payload = "
|
|
220
|
+
// Play smoke detection
|
|
221
|
+
msg.sonoshailing = "SmokeAlert";
|
|
222
|
+
msg.payload = "Warning, smoke detected. Fire extinguishers are in the kitchen, hall and garage.";
|
|
223
|
+
return msg;
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
```js
|
|
227
|
+
// Play an mp3
|
|
228
|
+
msg.sonoshailing = "MeteoJingle";
|
|
229
|
+
msg.payload = "http://192.125.22.44/meteotoday.mp3";
|
|
221
230
|
return msg;
|
|
222
231
|
```
|
|
223
232
|
|
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.48",
|
|
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": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"path": ">=0.12.7",
|
|
49
49
|
"@google-cloud/text-to-speech": "3.4.0",
|
|
50
50
|
"google-translate-tts": ">=0.2.1",
|
|
51
|
-
"microsoft-cognitiveservices-speech-sdk": "
|
|
51
|
+
"microsoft-cognitiveservices-speech-sdk": "1.19.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"eslint": ">=4.18.2",
|
|
@@ -229,7 +229,7 @@ module.exports = function (RED) {
|
|
|
229
229
|
} else {
|
|
230
230
|
var sAddresses = "";
|
|
231
231
|
oiFaces[ifname].forEach(function (iface) {
|
|
232
|
-
if (iface.internal == false && iface.family.toString().includes("4")) sAddresses = iface.address;
|
|
232
|
+
if (iface.internal == false && iface.family !== undefined && iface.family.toString().includes("4")) sAddresses = iface.address;
|
|
233
233
|
});
|
|
234
234
|
if (sAddresses !== "") jListInterfaces.push({ name: ifname, address: sAddresses });
|
|
235
235
|
}
|