Overview

AWSPollyTTSService provides high-quality text-to-speech synthesis through Amazon Polly with support for standard, neural, and generative engines. The service offers extensive language support, SSML features, and voice customization options including prosody controls for pitch, rate, and volume.

Installation

To use AWS Polly services, install the required dependencies:
pip install "pipecat-ai[aws]"

Prerequisites

AWS Account Setup

Before using AWS Polly TTS services, you need:
  1. AWS Account: Sign up at AWS Console
  2. IAM User: Create an IAM user with Polly permissions
  3. Access Keys: Generate access key ID and secret access key
  4. Voice Selection: Choose from available voices in the voice list

Required Environment Variables

  • AWS_ACCESS_KEY_ID: Your AWS access key ID
  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key
  • AWS_SESSION_TOKEN: Session token (if using temporary credentials)
  • AWS_REGION: AWS region (defaults to “us-east-1”)