Skip to content

Commit e785ca5

Browse files
committed
Make STT more verbose in Stream mode
1 parent fc30ffa commit e785ca5

File tree

1 file changed

+2
-2
lines changed
  • services/speech_to_text

1 file changed

+2
-2
lines changed

services/speech_to_text/v1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ module.exports = function (RED) {
391391
// console.log('Data Received from Input');
392392
// console.log(data);
393393
var d = JSON.parse(data);
394-
var newMsg = {payload : JSON.parse(data)};
394+
var newMsg = {payload : JSON.parse(data)};
395395
if (d) {
396396
if (d.error) {
397397
// Force Expiry of Token, as that is the only Error
398398
// response from the service that we have seen.
399399
// report the error for verbose testing
400-
payloadutils.reportError(node,newMsg,e.error);
400+
payloadutils.reportError(node,newMsg,d.error);
401401
token = null;
402402
getToken(determineService())
403403
.then(() => {

0 commit comments

Comments
 (0)