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)}),