Skip to content

Instantly share code, notes, and snippets.

@anaptfox
anaptfox / amazon-polly-speaker.js
Last active May 24, 2020 00:14
Node.js Amazon Polly to speaker example.
// Load the SDK
const AWS = require('aws-sdk')
const Stream = require('stream')
const Speaker = require('speaker')
// Create an Polly client
const Polly = new AWS.Polly({
signatureVersion: 'v4',
region: 'us-east-1'
})