AWS Media Transcriber
A serverless video transcription app built with AWS SAM: uploads go straight to S3, Step Functions drives Amazon Transcribe, and a Next.js front end shows the text.

About
AWS Media Transcriber turns an uploaded video or audio file into plain text. A Next.js front end asks API Gateway for a pre-signed S3 POST and uploads the file straight to S3, so it never passes through Lambda. It then asks the API to start processing. That starts a Step Functions workflow that runs an Amazon Transcribe job, polls it until it finishes, and saves a plain-text transcript next to the raw JSON. The backend is one AWS SAM template: an S3 bucket, a REST API, four Python 3.11 Lambda functions sharing one layer, an IAM role for Transcribe and the state machine.
How it works
The front end calls POST /upload-url with a file name and content type. The API handler returns a pre-signed POST for a key under uploads/, valid for an hour, and the browser posts the file to S3 directly. It then calls POST /process-video with that key, and the handler starts a Step Functions execution.
The state machine runs three Lambda tasks. The first starts a Transcribe job with speaker labels, writing JSON to transcriptions/. The workflow waits 15 seconds, then the second task checks the job. A Choice state loops back to the wait until the job reports COMPLETED or FAILED. On success the third task pulls the transcript text out of the JSON and saves it as a .txt file, which GET /get-transcription returns.
Limits worth knowing
This is a demo, not a product. The login screen accepts any username and password, CORS allows every origin, and the role Transcribe assumes carries the managed AmazonS3FullAccess policy instead of access to one bucket. All three need tightening before real use. Put an identity provider such as Cognito in front of the API, allow only known origins, and scope the role to the uploads/ and transcriptions/ prefixes.
The 1 GB limit is checked in the browser only. The pre-signed POST carries no content-length condition, so S3 does not enforce it. The optional transcription instructions field reaches the workflow, but no step reads it. Language is fixed to en-US, and two speakers is the ceiling for speaker labels.