How is Audio Identification transcription text created from JSON?

0

Dislaimer: I'm not a CS major :(

My son records lectures (1-5 people) in college. With AWS Transcribe, I've upload an audio file (in buckets), and transcribed it.

The transcription ("asrOutput.json") is a file he can open in Notepad, copy to Word, and format (id speakers, adding paragraph breaks, etc.).
However, I found that "Speaker Partitioning" breaks the long body of text into various speakers, making the output/reformatting much easier for him (http://threadgill.com/TranscriptionPreview.jpg).
But how do you have AWS built-in Lambda do that?
This question was asked in 2018 (https://github.com/trhr/aws-transcribe-transcript), but the answer's step-by-step instructions weren't applicable in today's UI for Amazon S3 > Buckets, or Amazon Transcribe > Transcription.
Per the answer, S3 has a Lambda function that triggers when uploading arsOutput.json into an "input/" folder, creating a Speaker Partioned formatted file in the "output/" folder.
Per the github instructions, I created an S3 bucket with two folders: input/ and output/ , but was unable to properly configure the Lambda function.
Any help would be much appreciated!

已提問 1 年前檢視次數 410 次
2 個答案
0

It's easier to follow the Regular Directions in that Github post (not the Lamba directions) and:

  • Download the .py file from the repo
  • Ctrl click the folder in Finder to open a Terminal window where you saved the JSON transcript file
  • Run python ./transcript.py asrOutput.json — I had to run python3 instead of python
  • The transcript file is saved as a .txt file in the same folder with the speakers separated

Thanks faangbait!

SDillon
已回答 6 個月前
  • At SDillon, are you able to help me run this program? I am not a developer and have no experience with Python.

0

I believe you can set it up using the method in this document.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-event-notifications.html

When configuring, set "input/" in "Prefix." and check "All object create events" in "Event types".
event

Then scroll to the bottom of the screen and under "Destination" you can select Lambda.
lambda

profile picture
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南