From c8c3738ae81215e153fecb472432168cc58e5d0f Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:17:31 +0700 Subject: [PATCH] custom stt vendor ws connection should not be closed in asrTimeout (#973) --- lib/tasks/gather.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index 75f0e085..8db6eae2 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -846,8 +846,10 @@ class TaskGather extends SttTask { this._startAsrTimer(); /* some STT engines will keep listening after a final response, so no need to restart */ - if (!['soniox', 'aws', 'microsoft', 'deepgram', 'speechmatics'] - .includes(this.vendor)) this._startTranscribing(ep); + if (!['soniox', 'aws', 'microsoft', 'deepgram', 'speechmatics'].includes(this.vendor) && + !this.vendor.startsWith('custom')) { + this._startTranscribing(ep); + } } else { /* this was removed to fix https://github.com/jambonz/jambonz-feature-server/issues/783 */