Example Noda.js script thats uses AWS Polly to convert a string to audo and streams the result back to the app to be played.
Requires AWS SDK for JavaScript.
Requires Node-Speaker.
You will need to modify the awscreds.json file to include your AWS security credentials. The IAM user must have access to Polly.
The following lines will need modification.
{
"accessKeyId": "Your Access Key",
"secretAccessKey": "Your Secret Key"
}
From the command line run the following:
node aws-polly-example.js