more changes trying to get AWS V3 sdk properly configured

This commit is contained in:
Dave Horton
2023-03-21 08:20:29 -04:00
parent d914b26cac
commit 6fa68bc712
2 changed files with 9 additions and 2 deletions

View File

@@ -184,7 +184,14 @@ async function synthAudio(client, logger, stats, { account_sid,
const synthPolly = async(logger, {credentials, stats, language, voice, engine, text}) => {
try {
const polly = new PollyClient({...credentials});
const {region, accessKeyId, secretAccessKey} = credentials;
const polly = new PollyClient({
region,
credentials: {
accessKeyId,
secretAccessKey
}
});
const opts = {
Engine: engine,
OutputFormat: 'mp3',

View File

@@ -1,6 +1,6 @@
{
"name": "@jambonz/speech-utils",
"version": "0.0.5",
"version": "0.0.6",
"description": "TTS-related speech utilities for jambonz",
"main": "index.js",
"author": "Dave Horton",