mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
minor logging change
This commit is contained in:
@@ -212,6 +212,7 @@ class TaskTranscribe extends Task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onTranscription(cs, ep, evt) {
|
_onTranscription(cs, ep, evt) {
|
||||||
|
this.logger.debug(evt, 'TaskTranscribe:_onTranscription');
|
||||||
if ('aws' === this.vendor && Array.isArray(evt) && evt.length > 0) evt = evt[0];
|
if ('aws' === this.vendor && Array.isArray(evt) && evt.length > 0) evt = evt[0];
|
||||||
if ('microsoft' === this.vendor) {
|
if ('microsoft' === this.vendor) {
|
||||||
const nbest = evt.NBest;
|
const nbest = evt.NBest;
|
||||||
@@ -227,7 +228,6 @@ class TaskTranscribe extends Task {
|
|||||||
};
|
};
|
||||||
evt = newEvent;
|
evt = newEvent;
|
||||||
}
|
}
|
||||||
this.logger.debug(evt, 'TaskTranscribe:_onTranscription');
|
|
||||||
|
|
||||||
if (this.transcriptionHook) {
|
if (this.transcriptionHook) {
|
||||||
this.cs.requestor.request(this.transcriptionHook, Object.assign({speech: evt}, this.cs.callInfo))
|
this.cs.requestor.request(this.transcriptionHook, Object.assign({speech: evt}, this.cs.callInfo))
|
||||||
|
|||||||
Reference in New Issue
Block a user