mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
further fix for google model
This commit is contained in:
@@ -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)}),
|
||||
|
||||
Reference in New Issue
Block a user