Compare commits

...
1 Commits
Author SHA1 Message Date
Dave Horton 6fa68bc712 more changes trying to get AWS V3 sdk properly configured 2023-03-21 08:20:29 -04:00
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -184,7 +184,14 @@ async function synthAudio(client, logger, stats, { account_sid,
const synthPolly = async(logger, {credentials, stats, language, voice, engine, text}) => { const synthPolly = async(logger, {credentials, stats, language, voice, engine, text}) => {
try { try {
const polly = new PollyClient({...credentials}); const {region, accessKeyId, secretAccessKey} = credentials;
const polly = new PollyClient({
region,
credentials: {
accessKeyId,
secretAccessKey
}
});
const opts = { const opts = {
Engine: engine, Engine: engine,
OutputFormat: 'mp3', OutputFormat: 'mp3',
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@jambonz/speech-utils", "name": "@jambonz/speech-utils",
"version": "0.0.5", "version": "0.0.6",
"description": "TTS-related speech utilities for jambonz", "description": "TTS-related speech utilities for jambonz",
"main": "index.js", "main": "index.js",
"author": "Dave Horton", "author": "Dave Horton",