mirror of
https://github.com/jambonz/speech-utils.git
synced 2025-12-19 03:37:49 +00:00
wip
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user