We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6863ae2 commit b2803d5Copy full SHA for b2803d5
services/speech_to_text/v1.js
@@ -423,6 +423,7 @@ module.exports = function (RED) {
423
424
ws.on('error', (err) => {
425
socketListening = false;
426
+ payloadutils.reportError(node,newMsg,err);
427
// console.log('Error Detected');
428
if (initialConnect) {
429
//reject(err);
@@ -468,7 +469,13 @@ module.exports = function (RED) {
468
469
if (audioStack && audioStack.length) {
470
audioStack.forEach((a) => {
471
if (a && a.action && 'data' === a.action) {
- websocket.send(a.data);
472
+ //websocket.send(a.data);
473
+ websocket.send(a.data, (error) => {
474
+ if (error) {
475
+ payloadutils.reportError(node,{},error);
476
+ } else {
477
+ }
478
+ });
479
}
480
});
481
audioStack = [];
0 commit comments