minor logging change

This commit is contained in:
Dave Horton committed 2022-01-14 07:56:11 -05:00
1 parent 59227febf9
commit afb874aabc
1 file changed
+1 -1
+1 -1
View File
@@ -212,6 +212,7 @@ class TaskTranscribe extends Task {
}
_onTranscription(cs, ep, evt) {
this.logger.debug(evt, 'TaskTranscribe:_onTranscription');
if ('aws' === this.vendor && Array.isArray(evt) && evt.length > 0) evt = evt[0];
if ('microsoft' === this.vendor) {
const nbest = evt.NBest;
@@ -227,7 +228,6 @@ class TaskTranscribe extends Task {
};
evt = newEvent;
}
this.logger.debug(evt, 'TaskTranscribe:_onTranscription');
if (this.transcriptionHook) {
this.cs.requestor.request(this.transcriptionHook, Object.assign({speech: evt}, this.cs.callInfo))