How to use the Polly function from aws-sdk

Find comprehensive JavaScript aws-sdk.Polly code examples handpicked from public code repositorys.

4
5
6
7
8
9
10
11
12
13
14
// Create the parameters


exports.saveTextToMp3 = async (event) => {
    console.log("🚀 ~ file: saveTextToMp3.js:8 ~ exports.saveTextToMp3= ~ event:", event['body'])
    let data = undefined;
    let polly = new AWS.Polly();
    console.log("🚀 ~ file: saveTextToMp3.js:11 ~ exports.saveTextToMp3= ~ polly:", polly)
    let s3 = new AWS.S3();
    console.log("🚀 ~ file: saveTextToMp3.js:12 ~ exports.saveTextToMp3= ~ s3:", s3)
    // const requestBody = JSON.parse(event.body);
fork icon0
star icon0
watch icon1

+ 19 other calls in file