Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Lambda-ready port of purdy/aws-transcribe-transcript

License

Notifications You must be signed in to change notification settings

faangbait/aws-transcribe-transcript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a port of purdy/aws-transcribe-transcript intended to run as an AWS Lambda function

aws-transcribe-transcript

This is a simple utility script to convert the Amazon Transcribe .json transcript into a more readable transcript. This uses PHP, but if you're interested, there's a Python port of this repo.

Amazon has a neat Transcription service and you can have the service identify speakers. And in their web interface, they show you a neat play-by-play transcript, but it's limited to the first 5,000 characters. If you want the full transcript, you have to download their JSON file. However, the JSON file only has the transcript as a big block and then some structured data below for the various speakers, start times, and text fragments.

This script creates a transcript that's human-readable.

Regular Directions

  1. Download your Transcription from the Job Details page. The filename format is currently asrOutput.json.
  2. Run the transcript.py program on the downloaded file, i.e. python ./transcript.py asrOutput.json
  3. Results will be written in your current working directory as [FILENAME]-transcript.txt

S3/Lambda Directions

  1. Probably worth checking your lambda Memory/Execution time settings, depending on the size of the files you'll work with. I like ~256MB and ~15 seconds for general use.
  2. Create an S3 bucket with two folders; input/ and output/
  3. Create a Lambda function that triggers on CreateObject in input/ (Triggers section of the UI)
  4. Give the function access to write to S3/output (Resources section of the UI)
  5. Place json file in S3/input and wait a few seconds for your transcript to show up in output/

About

Lambda-ready port of purdy/aws-transcribe-transcript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%