Convert textual content into audible speech with natural-sounding voices provided by Amazon Polly.
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.
- Python 3.6+
- An AWS Account
- AWS CLI configured with necessary credentials
-
Install Dependencies:
pip install -r requirements.txt
-
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
Run the script and listen to the synthesized speech:
python main.py