From 410c07fae64c444017e4bf12851d199c7d916402 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 31 Mar 2023 12:37:04 -0400 Subject: [PATCH] further fix for google model --- lib/utils/transcription-utils.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/utils/transcription-utils.js b/lib/utils/transcription-utils.js index 7391763d..afdc6975 100644 --- a/lib/utils/transcription-utils.js +++ b/lib/utils/transcription-utils.js @@ -336,11 +336,8 @@ module.exports = (logger) => { }; if ('google' === vendor) { - const altLanguages = [...new Set(rOpts.altLanguages)]; let model = 'phone_call'; - if (altLanguages.length) { - model = task.name === TaskName.Gather ? 'command_and_search' : 'latest_long'; - } + if (rOpts.altLanguages.length > 0) model = task.name === TaskName.Gather ? 'command_and_search' : 'latest_long'; opts = { ...opts, ...(sttCredentials && {GOOGLE_APPLICATION_CREDENTIALS: JSON.stringify(sttCredentials.credentials)}),