From 4337a55a27908bb0ac26e97d8e34c0a0e5c7f317 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Sat, 15 Jun 2024 19:10:58 +0700 Subject: [PATCH] update getAwsAuthToken to use parameters as object (#330) * update getAwsAuthToken to use parameters as object * update speech utils version --- lib/utils/speech-utils.js | 5 ++++- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/utils/speech-utils.js b/lib/utils/speech-utils.js index 1f1a954..096ed25 100644 --- a/lib/utils/speech-utils.js +++ b/lib/utils/speech-utils.js @@ -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}); diff --git a/package-lock.json b/package-lock.json index ccac80d..90f7bd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@jambonz/lamejs": "^1.2.2", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.9", - "@jambonz/speech-utils": "^0.1.3", + "@jambonz/speech-utils": "^0.1.11", "@jambonz/time-series": "^0.2.8", "@jambonz/verb-specifications": "^0.0.72", "@soniox/soniox-node": "^1.2.2", @@ -2027,9 +2027,9 @@ } }, "node_modules/@jambonz/speech-utils": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.1.3.tgz", - "integrity": "sha512-Ess3yc8XyJAoUvXFz9maLq4NgxkTkTgiN2uW3rgOFiRr7b6l9A3oNQrN/ZJCJc9Ge+I3CypFmcwCiLNehuqF/g==", + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.1.11.tgz", + "integrity": "sha512-VgljBLUF871adib/3yWpzd7kv26ioxiLVkAIxm94CSk9WeZuzX1lVcE2SohojW3mjCYdYY6+B8FRyzlTD+en3g==", "dependencies": { "@aws-sdk/client-polly": "^3.496.0", "@aws-sdk/client-sts": "^3.496.0", diff --git a/package.json b/package.json index cc33024..1470bd7 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@jambonz/lamejs": "^1.2.2", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.9", - "@jambonz/speech-utils": "^0.1.3", + "@jambonz/speech-utils": "^0.1.11", "@jambonz/time-series": "^0.2.8", "@jambonz/verb-specifications": "^0.0.72", "@soniox/soniox-node": "^1.2.2",