This commit is contained in:
Quan HL
2024-05-02 14:20:24 +07:00
parent c8571af129
commit e6a7017b55
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ const getAwsVoices = async(_client, createHash, retrieveHash, logger, credential
credentials: await getAwsAuthToken(logger, createHash, retrieveHash, null, null, region, roleArn),
});
} else {
client = new PollyClient();
client = new PollyClient({region});
}
const command = new DescribeVoicesCommand({});
const response = await client.send(command);

View File

@@ -285,7 +285,7 @@ const synthPolly = async(createHash, retrieveHash, logger,
});
} else {
// AWS RoleArn assigned to Instance profile
polly = new PollyClient();
polly = new PollyClient({region});
}
const opts = {
Engine: engine,