update getAwsAuthToken to use parameters as object (#330)

* update getAwsAuthToken to use parameters as object

* update speech utils version
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2024-06-15 08:10:58 -04:00
1 parent 6041b1d595
commit 4337a55a27
3 files changed
+9 -6

No files matched your search

+4 -1
View File
@@ -183,7 +183,10 @@ const testAwsStt = async(logger, getAwsAuthToken, credentials) => {
} else if (roleArn) {
client = new TranscribeClient({
region,
credentials: await getAwsAuthToken(null, null, region, roleArn),
credentials: await getAwsAuthToken({
region,
roleArn
}),
});
} else {
client = new TranscribeClient({region});