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!

질문됨 일 년 전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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠