diff --git a/lib/utils/speech-utils.js b/lib/utils/speech-utils.js index 1f1a954a..096ed25a 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 ccac80df..90f7bd4a 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 cc33024a..1470bd7b 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",