further fix for google model

This commit is contained in:
Dave Horton
2023-03-31 12:37:04 -04:00
parent 2ebfbfb3d8
commit 410c07fae6

View File

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