This example demonstrates how to setup a lambda function to transcribe your audio file (.wav format) into a text transcription. The lambda will be triggered whenever a new audio file is uploaded to S3 and the transcription (JSON format) will be saved to a S3 bucket.
This example demonstrates how to setup a lambda function to transcribe your audio file (.wav format) into a text transcription. The lambda will be triggered whenever a new audio file is uploaded to S3 and the transcription (JSON format) will be saved to a S3 bucket.
Edit serverless.yml
and change the language code if you need to, at the moment:
en-US | es-US | en-AU | fr-CA | en-UK
is supported
Declare AWS region if you need to, beware that at the moment, AWS Transcribe is not supported for all regions.
In order to deploy the you endpoint simply run
serverless deploy
The expected result should be similar to:
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (1.71 KB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
........................
Serverless: Stack update finished...
Service Information
service: aws-node-simple-transcribe-s3
stage: dev
region: us-east-1
stack: aws-node-simple-transcribe-s3-dev
api keys:
None
endpoints:
None
functions:
transcribe: aws-node-simple-transcribe-s3-dev-transcribe
Latest commit b2f54ec on Sep 24, 2017