# alexa-polly

> Easily create Polly utterances and cache them in S3

Latest version **1.0.6** (published 2019-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install alexa-polly
pnpm add alexa-polly
yarn add alexa-polly
bun add alexa-polly
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-01-10 |
| First published | 2018-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrea Muttoni |
| Maintainers | rekshaw |
| Keywords | alexa, polly, tts, text to speech, lambda, s3 |

## Links

- npm: https://www.npmjs.com/package/alexa-polly
- Homepage: https://github.com/muttoni/alexa-polly#readme
- Issues: https://github.com/muttoni/alexa-polly/issues
- npm.io page: https://npm.io/package/alexa-polly

## Recent versions

- 1.0.6 (latest) — 2019-01-10
- 1.0.5 — 2018-10-20
- 1.0.4 — 2018-10-20
- 1.0.3 — 2018-10-20
- 1.0.2 — 2018-10-20
- 1.0.1 — 2018-10-20
- 1.0.0 — 2018-10-20

## README

# Who is this for

This is the module for you if you want to:
- Use Amazon Polly via Lambda
- Cache the responses in S3 and serve them via S3

# How to use

Make sure your AWS Lambda function has permissions to access:
- your S3 bucket
- Polly


# Installation

`npm install alexa-polly`

# Usage

```javascript
//Inside a lambda context
exports.handler = async (event) => {
	const { AlexaPolly } = require('alexa-polly');

	const polly = AlexaPolly({
		awsRegion: 'eu-west-1',          // <-- your AWS region
		bucketName: 'your-bucket-name',  // <-- your AWS bucket name
		defaultVoice: 'Brian'            // <-- the unique id of the Polly voice you wish to use
	});

	await polly.say('Hello world');
	// -> https://s3-eu-west-1.amazonaws.com/your-bucket-name/Brian-feb8c74fc13ec529e245d16227c26a79.mp3

	await polly.say('Hello world in a different voice', 'Kimberly');
	// -> https://s3-eu-west-1.amazonaws.com/your-bucket-name/Kimberly-e245d16227c26a79feb8c74fc13ec529.mp3
}; 
```

---
_Source: https://npm.io/package/alexa-polly · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
