How to convert text into speech, upload to S3, and share with a signed URL
.env
file in your project directory and fill it with your credentials like so:
convert
method of the ElevenLabs SDK and then it locally as a .mp3
file.
Creating your AWS credentials
.env
file. Follow these steps to find the credentials:AWS Console Login
AWS IAM Dashboard
Add AWS IAM User
Set Permission for AWS IAM User
AWS Access Secret Key
AWS Region Name
AWS S3 Dashboard
Click Create Bucket Button
Enter a New S3 Bucket Name
S3 Bucket List
Installing the AWS SDK and adding the credentials
boto3
for interacting with AWS services using pip
and npm
..env
file like so:Uploading to AWS S3 and generating the signed URL
Putting it all together