An open API service indexing awesome lists of open source software.

https://github.com/damiancipolat/node-polly

Some examples using AWS Text to speech Polly services with node.js
https://github.com/damiancipolat/node-polly

aws nodejs polly tts

Last synced: 14 days ago
JSON representation

Some examples using AWS Text to speech Polly services with node.js

Awesome Lists containing this project

README

          

# Nodejs Polly AWS

## Install:

The only requirement of this application is the Node Package Manager. All other
dependencies (including the AWS SDK for Node.js) can be installed with:

npm install

## Configuration:

Go to the folder /config/default.json to change the configuration file.

```js
{
"region":"us-east-1",
"tts":{
"voice":"Emma"
},
"output":{
"s3":{
"bucket":"cipolat-bucket"
},
"local":{
"path":"./mp3"
}
}
}
```

## Examples:

**text to .MP3**: Convert a single text into an audio mp3 file.
```js
node text_to_mp3.js
```

**text_to_s3**: Convert a single text, get the audio stream and upload it into a s3 bucket.
```js
node text_to_s3.js
```

**ssml_to_mp3**: Convert the voice of the tts of a text that uses SSML.
```js
node ssml_to_mp3.js
```