View a markdown version of this page

AI-Enabled Audio Insight Processing Pipeline - AI-Enabled Audio Insight Processing Pipeline

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

Architecture diagram showing an AI-enabled audio insight processing pipeline with Amazon Transcribe, Amazon Translate, and Amazon Comprehend.

The following steps describe the architecture:

  1. Upload an audio file to an Amazon Simple Storage Service bucket.

  2. The file upload creates an Amazon S3 event and initiates an AWS Lambda transcribe job.

  3. The Lambda transcribe job calls the Amazon Transcribe API for transcription. Audio is converted to text and output is returned to the Lambda job.

  4. 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.

  5. A Lambda translate job is initiated by the Amazon S3 file upload. The Amazon Translate API is called for translation.

  6. Amazon Translate converts text from input language to output language. Translated text is returned to Lambda.

  7. The translated audio file is written to the Amazon S3 translated text bucket. The DynamoDB table entry is updated to include translate metadata.

  8. The Lambda text insights job is initiated by the Amazon S3 file upload.

  9. 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.

  10. The Lambda function updates the DynamoDB entry with Amazon Comprehend insights as additional metadata.

  11. Your HTTP GET match API call is routed through Amazon API Gateway.

  12. API Gateway initiates the Lambda GET match function.

  13. 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.

ChangeDescriptionDate

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.