From 8ad047b6056b40fa4f117faa77f26406c3d3fc67 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 18 Aug 2023 14:06:46 +0700 Subject: [PATCH] fix --- lib/tasks/gather.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 7f6cc968..7cdfb48e 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -341,12 +341,12 @@ class TaskGather extends Task { if (this.input.includes('speech') && this.listenDuringPrompt) { try { - return await this._startTranscribeForSpeech(cs, ep, this.vendor, this.language, this.sttCredentials); + await this._startTranscribeForSpeech(cs, ep, this.vendor, this.language, this.sttCredentials); } catch (error) { this.logger.error({error}, 'error in initSpeech'); if (this.fallbackSttCredentials) { try { - return await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor, + await this._startTranscribeForSpeech(cs, ep, this.fallbackVendor, this.fallbackLanguage, this.fallbackSttCredentials); } catch (err) { this.logger.error({err}, `error in initSpeech for fallback STT provider ${this.fallbackVendor}`);