Skip to content

This repository contains a simple Python script to convert text to speech using Amazon Polly, Boto3, and Pygame. By providing a textual input, users can generate and listen to the spoken version, utilizing the realistic and natural-sounding voices provided by Amazon Polly.

Notifications You must be signed in to change notification settings

gaultierlecaillon/speechGenerator_polly_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-to-Speech with Amazon Polly and Python

Convert textual content into audible speech with natural-sounding voices provided by Amazon Polly.

Overview

This simple Python script enables users to input text and generate a spoken version using the Amazon Polly service, known for its high-quality, lifelike vocal output.

Getting Started

Prerequisites

  • Python 3.6+
  • An AWS Account
  • AWS CLI configured with necessary credentials

Installation

  1. Install Dependencies:

    pip install -r requirements.txt
  2. Configuration: Create a .env file and add your AWS credentials:

    AWS_ACCESS_KEY=YOUR_ACCESS_KEY
    AWS_SECRET_KEY=YOUR_SECRET_KEY
    AWS_REGION=YOUR_REGION

Usage

Run the script and listen to the synthesized speech:

python main.py

About

This repository contains a simple Python script to convert text to speech using Amazon Polly, Boto3, and Pygame. By providing a textual input, users can generate and listen to the spoken version, utilizing the realistic and natural-sounding voices provided by Amazon Polly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages