0% found this document useful (0 votes)
3 views

AWS_Session_11_27-06-2023

Uploaded by

Attif Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

AWS_Session_11_27-06-2023

Uploaded by

Attif Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Summer Day 17 - AWS #BETHECREATOR

AWS Session
Summary 27-06-2023

● Here we again integrate the S3 bucket, Lambda service, and Transcribe


services.

● AWS S3 (Simple Storage Service) is a cloud-based storage service provided


by Amazon Web Services. It allows you to store and retrieve data, such as
audio or video files, in the cloud. S3 provides highly scalable and durable
storage, making it ideal for a variety of use cases.

● AWS Lambda is a serverless computing service that lets you run code
without provisioning or managing servers. You can think of it as a way to
execute code in response to events or triggers. Lambda functions are event-
driven and can be used to perform various tasks.

● AWS Transcribe is a speech-to-text service that automatically converts


spoken language into written text. It can be used for tasks like transcribing
audio recordings, generating closed captions for videos, and more.

● Upload an audio file to an S3 bucket. Configure an S3 event trigger. In AWS


Lambda, you can configure an S3 event trigger on the bucket where the
audio file is uploaded. This means that whenever a new file is added to the
bucket, Lambda will automatically execute a function.

Summer Industrial Training 2023 1


Summer Day 17 - AWS #BETHECREATOR

● Create a bucket in the S3 service. The bucket name should be unique. And
upload a file to the bucket.

● Create a Lambda function, give the name of the function, select runtime as
python3.10

Summer Industrial Training 2023 2


Summer Day 17 - AWS #BETHECREATOR

● Go inside the S3 service, click on your bucket, and create an event


notification. Give the name of the event and add the .mp3 suffix.

● Select event types PUT, select the created Lambda function, and save it.

Summer Industrial Training 2023 3


Summer Day 17 - AWS #BETHECREATOR

● Now you can see Lambda service is an integrated S3 service. Run the
lambda function. The first time it asks to create an event so, create an event.
Give the name of the event and save it.

Summer Industrial Training 2023 4


Summer Day 17 - AWS #BETHECREATOR

● Now go to Transcribe service click on Create jobs, and give the name of the
job.

Summer Industrial Training 2023 5


Summer Day 17 - AWS #BETHECREATOR

● In the transcribe while creating jobs we have to give the source URL that
you will get from the S3 bucket go inside the uploaded file there you will get
this URL.

● Here you have to give the Resource URL, click on next and create a job.

Summer Industrial Training 2023 6


Summer Day 17 - AWS #BETHECREATOR

● Write this code in the lambda function and give your job name and
OutputBucket name also. first, deploy and run this code.

Summer Industrial Training 2023 7


Summer Day 17 - AWS #BETHECREATOR

● Now click on configuration, go into permission, and click on role name. it


will redirect you to the IAM service.

● Now we have to add S3FullAccess and TranscribeFullAccess permission.

● Now again run the lambda function this time lambda will run successfully.

● Now go to the S3 bucket and upload an audio file. As soon as this file
upload lambda function will automatically trigger.

Summer Industrial Training 2023 8


Summer Day 17 - AWS #BETHECREATOR

● In the cloud watch, you can see the logs of the file, our code is successfully
run. Here you can see the result.

● Go to Transcribe service there you can see the status complete click on that.

Summer Industrial Training 2023 9


Summer Day 17 - AWS #BETHECREATOR

● Inside that job, you can see the “output data location”, click on that.

● It will redirect you to the S3 bucket. This is the output file where our audio
file is converted into text. Click on download.

Summer Industrial Training 2023 10


Summer Day 17 - AWS #BETHECREATOR

● After downloading, open this file here you can see the script of a song that I
have uploaded in S3 and it is converted into text.

Summer Industrial Training 2023 11

You might also like