Skip to content

A Voxa plugin for replying with voices from AWS Polly

Notifications You must be signed in to change notification settings

VoxaAI/voxa-polly-renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voxa Polly Renderer

Travis Coveralls

A custom renderer for Voxa that uses AWS Polly text to speech, this allows you to have skills with voices other than the alexa ones

Installation

Install from npm

npm install --save voxa-polly-renderer

Usage

const Voxa = require('voxa');
const PollyRenderer = require('voxa-polly-renderer').PollyRenderer;


// initialize the skill
const skill = new Voxa({
  variables,
  views,
  RenderClass: PollyRenderer,
  renderer: {
    bucket: 'YOU_S3_BUCKET',
    s3Path: 'THE_PATH_IN_YOUR_S3_BUCKET_TO_STORE_AUDIO',
  },
});

// Update your view to specify the voice you want to use
// Eg:
const views = {
      LaunchView: {
        say: 'Welcome back to Voxa, this view will be read using the Joey voice from Polly ',
        voice: 'Joey',
      },
};