Run Amazon Polly right on your desktop using this amazingly simple app!
Play audio right inside the app or save it as an mp3!
Switch between light and dark themes!
Scale the UI to be larger or smaller!
Choose from any of the Amazon Polly natural voices!
-
Set Up Your AWS Account
- Sign Up: Head over to AWS Home to create your account. You’ll need to provide some basic info like your email, password, contact details, and credit card.
- Log In: Once you’ve set up your account, log into the AWS Management Console.
-
Create an IAM User
- From the AWS
Console Home
screen (can access this screen by clicking theAWS
logo in the top left corner) look to the right of the logo for asearch
bar - In the search bar type
"iam"
in the search box and then click on the result that just saysIAM
under theServices
category following the picture below
- From the AWS
- Once inside the
Identiy and Access Management (IAM)
homepage look to the left and you should see a sidebar full of options, under theAccess management
category click onUsers
like in the picture below
- To the right click on
Create user
like in the picture below
- Give the user a name and then click
Next
- Under
Set permissions
andPermission options
there's 3 options, toggle on the rightmost option which should sayAttach policies directly
- After the
Permission options
there's thePermissions policies
where under that category, check onAmazonPollyFullAccess
(and optionally toggle onAdministratorAccess
,AWSCompromisedKeyQuarantineV2
for more control) - Click
Next
and thenCreate user
- Set Up AWS CLI (Optional)
- Attach Security Credentials:
- After creating a user, we should be back in the
users
directory - Open into the user we just created in step 2 by clicking on there name
- Now once your inside, look in the middle of the dashboard to find 4 tab options labeled (
Permissions Groups
,Tags
,Security credentials
,Access Advisor
), and then click on the tab that saysSecurity credentials
tab - Inside the
Security credentials
tab look under theAccess Keys (0)
tab and then under that tab clickCreate Access key
- From the list of types, toggle on the
Command Line Interface (CLI)
option and then check on the box below that saysI understand...
- (On this page DON'T click on
Done
!) Instead, to the left ofDone
there should be a button that saysDownload .csv file
, click on that and save the .csv file to your computer. This stores the access key/secrete pair in a .csv but if you want to store them some other way you can, you just need to know there values for the next step (Read if you forgot your keys: if you forgot your access key values then all you have to do is repeat step 3, once you created a new access key and you SAVED there values then you can go to your list of access keys and delete the old one)
- After creating a user, we should be back in the
- Attach Security Credentials:
- Install and Configure AWS ClI:
- Download and install
AWS CLI.exe
by following this link to the AWS CLI website then click on whats boxed in red from the picture below matching the system your on.
- Download and install
- Open a command prompt on your desktop
- Run
aws configure
in your command prompt. - Input your AWS Access Key ID and Secret Access Key (if you forgot look at the
username_access.cvs
file you saved earlier) - Set your default region, like
us-east-1
, and output format asjson
.
-
Run Synthesize Speech App!
- Grab the exe from the
releases
section on this GitHub repo. - Open it, and if a warning pops up, click
more info
and thenRun anyway
.
- Grab the exe from the
-
Add Polly Speech to All Programs in Windows (Optional)
- Right-click on the
exe
and choosecreate desktop shortcut
. - Move the shortcut to
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
. - Renaming the shortcut will change how it appears in search results without breaking the link.
- Right-click on the
-
build local version of program
- install python
3.11.7
, then in the terminal run the followingpip
commandspip install boto3
-pip install pygame
-pip install customtkinter
-pip install io
-pip install pyinstaller
- Download the
synthesize_speech-advanced.py
file - open up the terminal in the directory of the python file you just downloaded, run the following command
-
pyinstaller --onefile --windowed text_to_speech.py
- Inside the same folder as your python file should be a
Dist
, open it up and there should be your local build ofsynthesize_speech-advanced.exe
- install python
-
if the
synthesize_speech-advanced.exe
build failed continue below- install
visual studio build tools 2022
and the rest of the programs dependcies- in the main install menu check on to install
Desktop development with C++
- in
individual components
check on to installMSVC v142 - VS 2019 C++ x64/x86 build tools
- open
edit the system enviorment variables
and then underSystem
open uppath
- under
path
addC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64
- open up the terminal in the directory of the python file you downloaded in step 1, then run the following command again
pyinstaller --onefile --windowed text_to_speech.py
- Inside the same folder as your python file should be a
Dist
, open it up and there should be your local build ofsynthesize_speech-advanced.exe
- in the main install menu check on to install
- install