node-red-contrib-sonospollytts
Advanced tools
Comparing version 1.1.25 to 1.1.26
@@ -8,2 +8,7 @@ ![Sample Node](img/logo.png) | ||
<p> | ||
<b>Version 1.1.26</b> Juli 2020<br/> | ||
- Stability improvement whenever internet connection is broken while downloading TTS audio from Amazon AWS service.<br/> | ||
- Full support for SSML syntax (https://docs.aws.amazon.com/polly/latest/dg/supportedtags.html).<br/> | ||
</p> | ||
<p> | ||
<b>Version 1.1.25</b> June 2020<br/> | ||
@@ -10,0 +15,0 @@ - Update sonos api to 1.13.0<br/> |
{ | ||
"name": "node-red-contrib-sonospollytts", | ||
"version": "1.1.25", | ||
"version": "1.1.26", | ||
"description": "Node-Red TTS with Sonos and Amazon Polly or with your own local mp3 announcement files. Transforms the text in speech and hear it using Sonos player. Can work OFFLINE as well! This node is specific for security alarm announcement, doorbell, weather annoucement etc.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,14 @@ module.exports = function (RED) { | ||
sRet = sRet.toString().replace(/\>/g, "_greater_"); | ||
sRet = sRet.toString().replace(/\//g, "_sl_"); | ||
sRet = sRet.toString().replace(/\'/g, "_ap_"); | ||
sRet = sRet.toString().replace(/\=/g, "_ug_"); | ||
sRet = sRet.toString().replace(/\\/g, "_bs_"); | ||
sRet = sRet.toString().replace(/\(/g, "_pa_"); | ||
sRet = sRet.toString().replace(/\)/g, "_pc_"); | ||
sRet = sRet.toString().replace(/\*/g, "_as_"); | ||
sRet = sRet.toString().replace(/\[/g, "_qa_"); | ||
sRet = sRet.toString().replace(/\]/g, "_qc_"); | ||
sRet = sRet.toString().replace(/\^/g, "_fu_"); | ||
sRet = sRet.toString().replace(/\|/g, "_pi_"); | ||
sRet = sRet.toString().replace(/\"/g, "_dc_"); | ||
// slug.charmap['.'] = '_stop_'; | ||
@@ -822,2 +834,10 @@ // slug.charmap['?'] = '_qm_'; | ||
RED.log.info('SonosPollyTTS: HandleQueue - Polly is in downloading Timeout'); | ||
node.setNodeStatus({ | ||
fill: 'yellow', | ||
shape: 'dot', | ||
text: 'SonosPollyTTS: HandleQueue - Polly is in downloading Timeout' | ||
}); | ||
node.sSonosPlayState = "stopped"; | ||
node.oTimer = setTimeout(function () { HandleQueue(node); }, 1000); | ||
return; | ||
} | ||
@@ -852,3 +872,3 @@ | ||
}).catch(err => { | ||
node.setNodeStatus({ fill: "red", shape: "dot", text: "err currtrack: " + err + " " + node.sSonosPlayState}); | ||
node.setNodeStatus({ fill: "red", shape: "dot", text: "err currtrack: " + err + " " + node.sSonosPlayState }); | ||
node.sSonosTrackTitle = "stopped"; // force stopped | ||
@@ -855,0 +875,0 @@ HandleQueue2(node); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
699292
1237