@jambonz/speech-utils 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/synth-audio.js +8 -1
- package/package.json +1 -1
package/lib/synth-audio.js
CHANGED
|
@@ -184,7 +184,14 @@ async function synthAudio(client, logger, stats, { account_sid,
|
|
|
184
184
|
|
|
185
185
|
const synthPolly = async(logger, {credentials, stats, language, voice, engine, text}) => {
|
|
186
186
|
try {
|
|
187
|
-
const
|
|
187
|
+
const {region, accessKeyId, secretAccessKey} = credentials;
|
|
188
|
+
const polly = new PollyClient({
|
|
189
|
+
region,
|
|
190
|
+
credentials: {
|
|
191
|
+
accessKeyId,
|
|
192
|
+
secretAccessKey
|
|
193
|
+
}
|
|
194
|
+
});
|
|
188
195
|
const opts = {
|
|
189
196
|
Engine: engine,
|
|
190
197
|
OutputFormat: 'mp3',
|