Skip to content

Commit 50dfc56

Browse files
author
Archana Venkitaramanan
committed
Changed audio file to video
1 parent 908529d commit 50dfc56

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

apigw-lambda-transcribe/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Audio transcription with AWS Lambda and Amazon Transcribe
1+
# Subtitle generation with AWS Lambda and Amazon Transcribe
22

3-
Using this sample pattern, users can securely upload images to an Amazon S3 bucket by requesting a pre-signed URL through Amazon API Gateway. This URL allows secure and temporary access for uploading files directly to S3.
3+
Using this sample pattern, users can securely upload videos to an Amazon S3 bucket by requesting a pre-signed URL through Amazon API Gateway. This URL allows secure and temporary access for uploading files directly to S3.
44

5-
Once an audio file is uploaded, an S3 event invokes another Lambda function to start the Transcribe job using the StartTranscriptionJob API. Once the transcription is completed, the result will be stored in the output S3 bucket.
5+
Once a video file is uploaded, an S3 event invokes another Lambda function to start the Transcribe job using the StartTranscriptionJob API. Once the transcription is completed, the generated subtitles will be stored in the output S3 bucket.
66

77
Learn more about this pattern at Serverless Land Patterns: https://serverlessland.com/patterns/apigw-lambda-transcribe
88

@@ -47,17 +47,17 @@ Important: this application uses various AWS services and there are costs associ
4747
1. Make a POST request to the API using the following cURL command:
4848
4949
```
50-
curl --location 'API_ENDPOINT' --header 'Content-Type: application/json' --data '{"object_name": "audio.mp3", "content_type": "audio/mpeg"}'
50+
curl --location 'API_ENDPOINT' --header 'Content-Type: application/json' --data '{"object_name": "video.mp4", "content_type": "video/mp4"}'
5151
```
5252
53-
Note: Replace `API_ENDPOINT` with the generated `api_endpoint` from Terraform (refer to the Terraform Outputs section) `object_name` with your desired name for the S3 object and `content_type` with the content type of the audio, for ex, mp3 or m4a
53+
Note: Replace `API_ENDPOINT` with the generated `api_endpoint` from Terraform (refer to the Terraform Outputs section) `object_name` with your desired name for the S3 object and `content_type` with the content type of the video, for ex, mp4.
5454
5555
1. Get the pre-signed URL from the previous step and use the following cURL command to upload the object in S3:
5656
5757
```
58-
curl -v --location -T "audio.mp3" \
58+
curl -v --location -T "video.mp4" \
5959
'PRESIGNED_URL' \
60-
--header 'Content-Type: audio/mpeg'
60+
--header 'Content-Type: video/mp4'
6161
```
6262
6363
Note: Replace `PRESIGNED_URL` with pre-signed URL generated in the previous step. `Content-Type` should match the content type used to generate the pre-signed URL in the previous step.

apigw-lambda-transcribe/example-pattern.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"title": "Audio Transcription using AWS API Gateway and AWS Lambda",
2+
"title": "Subtitle generation using AWS API Gateway and AWS Lambda",
33
"description": "This pattern creates an AWS Lambda function which will invoke Amazon Transcribe for speech-to-text conversion, and stores results in Amazon S3",
44
"language": "Python",
55
"level": "200",
66
"framework": "Terraform",
77
"introBox": {
88
"headline": "How it works",
99
"text": [
10-
"This sample pattern is an automated serverless solution for audio transcription using AWS services. This system securely handles audio file uploads via pre-signed URLs, automatically triggers Amazon Transcribe for speech-to-text conversion, and stores results in S3."
10+
"This sample pattern is an automated serverless solution for subtitle generation using AWS services. This system securely handles video file uploads via pre-signed URLs, automatically triggers Amazon Transcribe for speech-to-text conversion, and stores results in S3."
1111
]
1212
},
1313
"gitHub": {

0 commit comments

Comments
 (0)