Welcome to part 2 of the tutorial series on AWS Audio Analysis. In the previous tutorial, I have given the overview of Amazon Transcribe service. Here, in this tutorial, I’m going to take you through on creating the resources with respect to an architecture diagram.
I will start with the S3 Management console for resource creation. Create the new bucket with an appropriate name (i.e. aws-audio-analysis). Open the bucket and create two folders as discussed in architecture diagram with an identifiable name (i.e. audioFile & transcribeFile). audioFile folder for uploading audio file and transcribeFile for storing the transcribed file.
The next step is to create the lambda function, but before that let’s create the IAM role with the required permission. Navigate to IAM Management Console -> Roles -> Create role->Choose Lambda (since we are creating this role for the lambda function) and click on Next: Permissions. Select AWSLambdaExecute and AmazonTranscribeFullAccess and click on Next: Tags. Give appropriate tags and role name on the respective screen (i.e. aws_audio_analysis_lambda).
Post creating an IAM role, navigate to Lambda Management Console -> Functions. Click on Create Function and fill the required details like name and select Runtime as Python 3.7 and choose the existing role and select the role that we have created in the previous step.
As a next step, we will set up the trigger on lambda function. Open the lambda function that you have just created. In the Designer pane click on S3 from Add triggers panel and fill the required details. Select the bucket that we have created as the first step. Event type remains unchanged. Under prefix, we will mention audioFile/ (Since the audio file will be dropped in audioFile folder and it will trigger the lambda function)and click on Add. Save the lambda function.
Hence, you are all set for the next step. Please refer below tutorial for practical implementation.
In the next tutorial, I will take you through on configuring the lambda function for Amazon Transcribe. While I post the new update on AWS Audio Analysis, refer my YouTube channel for more tutorials. Keep sharing and stay tuned for more. Follow me on Twitter