/awsPollyNodeAudioStream

This is an example of how to stream aws polly responses to a client using node, express, and socket.io.

Primary LanguageJavaScript

AWS Polly Node - Express - Socket.io Audio Stream Response 💬

Make sure you have set your credentials in ~/.aws/credentials styled like so. And make sure the key and secret have the right AWS polly permissions associated to them.

aws_access_key_id = KEYHERE
aws_secret_access_key = KEYHERE

Otherwise, clone this repo, type

npm install

Then I like to use nodemon server.js, but you can also use node server.js to run the server.