Turning My Notes Into Audio with AWS (Serverless + Terraform)
About a month in the past, I had this random thought whereas on the bus to highschool:
“What if I might simply hearken to my handwritten notes as a substitute of studying them?”
I needed one thing easy, cost-effective, and since I already spend a number of time working with AWS, it made sense to construct it there.
After a little bit of brainstorming, I landed on the proper stack:
- Amazon Textract → Extract textual content from my photos.
- Amazon Polly → Turn that textual content into natural-sounding speech.
- AWS Lambda + API Gateway → Keep it serverless and cost-friendly.
- Amazon S3 → Store my uploaded photos and generated audio recordsdata.
And as a result of I’m all about infrastructure-as-code, I deployed the entire thing with Terraform.
The Architecture
Here’s a high-level take a look at the way it works:
Simple, serverless, and low cost to run, which is strictly what I wanted.
Why These Services?
- Amazon S3 – Stores photos and audio recordsdata.
- Amazon Textract – Extracts textual content from scanned or photographed paperwork.
- Amazon Polly – Turns textual content into speech.
- AWS Lambda – Runs the logic with out managing servers.
- API Gateway – Provides a REST API endpoint for the consumer.
- Terraform – Automates the complete setup so it’s reproducible.
Provisioning with Terraform
Instead of manually clicking round within the AWS Console, I used Terraform to outline every part:
- S3 buckets for photos and audio
- Lambda perform with IAM permissions
- API Gateway endpoint
- Access for Textract and Polly
Deployment was so simple as:
terraform init
terraform apply
A couple of minutes later, every part was reside. No console clicking. No missed assets.
How the App Works
- The consumer uploads a picture by way of the API Gateway endpoint.
- The picture is saved in S3.
- Textract extracts the textual content from the picture.
- Polly converts the extracted textual content into an MP3.
- The MP3 is saved to a different S3 bucket.
- A pre-signed URL is generated so the consumer can pay attention or obtain it.
When I examined it with a snapshot of my lecture notes, I acquired an audio file again in seconds. The better part? Since it’s all serverless, I solely pay for what I take advantage of — excellent for a scholar finances.
Final Thoughts
This was a enjoyable technique to combine AWS AI companies, serverless structure, and Terraform right into a single venture. Now I can “learn” my notes whereas strolling, commuting, and even cooking — and it prices only a few cents per use.
That mentioned… Polly’s voice nonetheless sounds a bit robotic at occasions. But for this use case, it really works effectively sufficient, and the construct was price it.
If you wish to strive it out or see the way it’s constructed:
- Code & Terraform → GitHub Repo
- Live Demo → audio-notes-client.vercel.app
HI-FI News
by way of DEV Community https://dev.to
August 10, 2025 at 12:39AM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT









