From 36c723d8f0c2fc2ddd6bc79f225032d36116e2a6 Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Thu, 3 Feb 2022 22:46:45 +0100 Subject: [PATCH] add more debug logs --- lib/tasks/gather.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 43c9eb51..b0316603 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -88,6 +88,7 @@ class TaskGather extends Task { const startListening = (cs, ep) => { this._startTimer(); if (this.input.includes('speech') && !this.listenDuringPrompt) { + this.logger.debug("started listeting1"); this._initSpeech(cs, ep) .then(() => { this._startTranscribing(ep); @@ -106,6 +107,7 @@ class TaskGather extends Task { this.logger.debug('Gather: say task completed'); if (!this.killed) { if (this.listenAfterSpeech === true) { + this.logger.debug("started listeting2"); startListening(cs, ep); } else { this.notifyTaskDone(); @@ -130,6 +132,7 @@ class TaskGather extends Task { else startListening(cs, ep); if (this.input.includes('speech') && this.listenDuringPrompt) { + this.logger.debug("started listeting3"); await this._initSpeech(cs, ep); this._startTranscribing(ep); updateSpeechCredentialLastUsed(this.sttCredentials.speech_credential_sid)