AI-Enabled Audio Insight Processing Pipeline
Publication date: June 20, 2022 (Diagram history)
This architecture shows how to use API-driven AI/ML services to process audio files. With a serverless architecture, you can create a pipeline for multi-language insights including transcription, translation, and natural language understanding.
AI-Enabled Audio Insight Processing Pipeline
The following steps describe the architecture:
-
Upload an audio file to an Amazon Simple Storage Service bucket.
-
The file upload creates an Amazon S3 event and initiates an AWS Lambda transcribe job.
-
The Lambda transcribe job calls the Amazon Transcribe API for transcription. Audio is converted to text and output is returned to the Lambda job.
-
The transcribed audio file is written to the Amazon S3 transcribed text bucket. The audio file name and metadata is written to the Amazon DynamoDB table as a new entry.
-
A Lambda translate job is initiated by the Amazon S3 file upload. The Amazon Translate API is called for translation.
-
Amazon Translate converts text from input language to output language. Translated text is returned to Lambda.
-
The translated audio file is written to the Amazon S3 translated text bucket. The DynamoDB table entry is updated to include translate metadata.
-
The Lambda text insights job is initiated by the Amazon S3 file upload.
-
The function calls the Amazon Comprehend API for document understanding inference. Amazon Comprehend runs inference on translated text and returns analysis. This includes entity recognition, sentiment analysis, and key phrase extraction.
-
The Lambda function updates the DynamoDB entry with Amazon Comprehend insights as additional metadata.
-
Your
HTTP GETmatch API call is routed through Amazon API Gateway. -
API Gateway initiates the Lambda GET match function.
-
The Lambda GET match function queries Amazon Kendra to find a file match from the translated text Amazon S3 bucket. The query returns matching file IDs. Lambda then uses these to query DynamoDB for insight metadata and returns the most suitable matches.
Further reading
For additional information, refer to the following resources:
Diagram history
To be notified about updates to this reference architecture diagram, subscribe to the RSS feed.
| Change | Description | Date |
|---|---|---|
Initial publication | Reference architecture diagram first published. | June 20, 2022 |
Note
To subscribe to RSS updates, you must have an RSS plugin enabled for the browser you are using.