Build a serverless audio summarization resolution with Amazon Bedrock and Whisper
Recordings of enterprise conferences, interviews, and buyer interactions have develop into important for preserving necessary info. However, transcribing and summarizing these recordings manually is commonly time-consuming and labor-intensive. With the progress in generative AI and computerized speech recognition (ASR), automated options have emerged to make this course of sooner and extra environment friendly.
Protecting personally identifiable info (PII) is an important facet of information safety, pushed by each moral obligations and authorized necessities. In this put up, we display how one can use the Open AI Whisper basis mannequin (FM) Whisper Large V3 Turbo, out there in Amazon Bedrock Marketplace, which gives entry to over 140 fashions by means of a devoted providing, to supply close to real-time transcription. These transcriptions are then processed by Amazon Bedrock for summarization and redaction of delicate info.
Amazon Bedrock is a completely managed service that provides a alternative of high-performing FMs from main AI corporations like AI21 Labs, Anthropic, Cohere, DeepSeek, Luma, Meta, Mistral AI, poolside (coming quickly), Stability AI, and Amazon Nova by means of a single API, together with a broad set of capabilities to construct generative AI purposes with safety, privateness, and accountable AI. Additionally, you should use Amazon Bedrock Guardrails to mechanically redact delicate info, together with PII, from the transcription summaries to help compliance and knowledge safety wants.
In this put up, we stroll by means of an end-to-end structure that mixes a React-based frontend with Amazon Bedrock, AWS Lambda, and AWS Step Functions to orchestrate the workflow, facilitating seamless integration and processing.
Solution overview
The resolution highlights the facility of integrating serverless applied sciences with generative AI to automate and scale content material processing workflows. The consumer journey begins with importing a recording by means of a React frontend software, hosted on Amazon CloudEntrance and backed by Amazon Simple Storage Service (Amazon S3) and Amazon API Gateway. When the file is uploaded, it triggers a Step Functions state machine that orchestrates the core processing steps, utilizing AI fashions and Lambda features for seamless knowledge move and transformation. The following diagram illustrates the answer structure.

The workflow consists of the next steps:
- The React software is hosted in an S3 bucket and served to customers by means of CloudEntrance for quick, world entry. API Gateway handles interactions between the frontend and backend companies.
- Users add audio or video information straight from the app. These recordings are saved in a chosen S3 bucket for processing.
- An Amazon EventBridge rule detects the S3 add occasion and triggers the Step Functions state machine, initiating the AI-powered processing pipeline.
- The state machine performs audio transcription, summarization, and redaction by orchestrating a number of Amazon Bedrock fashions in sequence. It makes use of Whisper for transcription, Claude for summarization, and Guardrails to redact delicate knowledge.
- The redacted abstract is returned to the frontend software and exhibited to the consumer.
The following diagram illustrates the state machine workflow.

The Step Functions state machine orchestrates a sequence of duties to transcribe, summarize, and redact delicate info from uploaded audio/video recordings:
- A Lambda operate is triggered to assemble enter particulars (for instance, Amazon S3 object path, metadata) and put together the payload for transcription.
- The payload is shipped to the OpenAI Whisper Large V3 Turbo mannequin by means of the Amazon Bedrock Marketplace to generate a close to real-time transcription of the recording.
- The uncooked transcript is handed to Anthropic’s Claude Sonnet 3.5 by means of Amazon Bedrock, which produces a concise and coherent abstract of the dialog or content material.
- A second Lambda operate validates and forwards the abstract to the redaction step.
- The abstract is processed by means of Amazon Bedrock Guardrails, which mechanically redacts PII and different delicate knowledge.
- The redacted abstract is saved or returned to the frontend software by means of an API, the place it’s exhibited to the consumer.
Prerequisites
Before you begin, just remember to have the next stipulations in place:
- Before utilizing Amazon Bedrock fashions, you should request entry—a one-time setup step. For this resolution, confirm that entry to the Anthropic’s Claude Sonnet 3.5 mannequin is enabled in your Amazon Bedrock account. For directions, see Access Amazon Bedrock basis fashions.
- Set up a guardrail to allow PII redaction by configuring filters that block or masks delicate info. For steering on configuring filters for extra use circumstances, see Remove PII from conversations by utilizing delicate info filters.
- Deploy the Whisper Large V3 Turbo mannequin throughout the Amazon Bedrock Marketplace. This put up additionally gives step-by-step steering for the deployment.
- The AWS Command Line Interface (AWS CLI) must be put in and configured. For directions, see Installing or updating to the newest model of the AWS CLI.
- Node.js 14.x or later must be put in.
- The AWS CDK CLI must be put in.
- You ought to have Python 3.8+.
Create a guardrail within the Amazon Bedrock console
For directions for creating guardrails in Amazon Bedrock, discuss with Create a guardrail. For particulars on detecting and redacting PII, see Remove PII from conversations by utilizing delicate info filters. Configure your guardrail with the next key settings:
- Enable PII detection and dealing with
- Set PII motion to Redact
- Add the related PII varieties, akin to:
- Names and identities
- Phone numbers
- Email addresses
- Physical addresses
- Financial info
- Other delicate private info
After you deploy the guardrail, be aware the Amazon Resource Name (ARN), and you’ll be utilizing this when deploys the mannequin.
Deploy the Whisper mannequin
Complete the next steps to deploy the Whisper Large V3 Turbo mannequin:
- On the Amazon Bedrock console, select Model catalog below Foundation fashions within the navigation pane.
- Search for and select Whisper Large V3 Turbo.
- On the choices menu (three dots), select Deploy.

- Modify the endpoint identify, variety of cases, and occasion sort to fit your particular use case. For this put up, we use the default settings.
- Modify the Advanced settings part to fit your use case. For this put up, we use the default settings.
- Choose Deploy.
This creates a brand new AWS Identity and Access Management IAM function and deploys the mannequin.
You can select Marketplace deployments within the navigation pane, and within the Managed deployments part, you possibly can see the endpoint standing as Creating. Wait for the endpoint to complete deployment and the standing to alter to In Service, then copy the Endpoint Name, and you’ll be utilizing this when deploying the

Deploy the answer infrastructure
In the GitHub repo, comply with the directions within the README file to clone the repository, then deploy the frontend and backend infrastructure.
We use the AWS Cloud Development Kit (AWS CDK) to outline and deploy the infrastructure. The AWS CDK code deploys the next sources:
- React frontend software
- Backend infrastructure
- S3 buckets for storing uploads and processed outcomes
- Step Functions state machine with Lambda features for audio processing and PII redaction
- API Gateway endpoints for dealing with requests
- IAM roles and insurance policies for safe entry
- CloudEntrance distribution for internet hosting the frontend
Implementation deep dive
The backend consists of a sequence of Lambda features, every dealing with a selected stage of the audio processing pipeline:
- Upload handler – Receives audio information and shops them in Amazon S3
- Transcription with Whisper – Converts speech to textual content utilizing the Whisper mannequin
- Speaker detection – Differentiates and labels particular person audio system throughout the audio
- Summarization utilizing Amazon Bedrock – Extracts and summarizes key factors from the transcript
- PII redaction – Uses Amazon Bedrock Guardrails to take away delicate info for privateness compliance
Let’s study a number of the key parts:
The transcription Lambda operate makes use of the Whisper mannequin to transform audio information to textual content:
def transcribe_with_whisper(audio_chunk, endpoint_name):
# Convert audio to hex string format
hex_audio = audio_chunk.hex()
# Create payload for Whisper mannequin
payload = {
"audio_input": hex_audio,
"language": "english",
"process": "transcribe",
"top_p": 0.9
}
# Invoke the SageMaker endpoint working Whisper
response = sagemaker_runtime.invoke_endpoint(
EndpointName=endpoint_name,
Content materialType='software/json',
Body=json.dumps(payload)
)
# Parse the transcription response
response_body = json.hundreds(response['Body'].learn().decode('utf-8'))
transcription_text = response_body['text']
return transcription_text
We use Amazon Bedrock to generate concise summaries from the transcriptions:
def generate_summary(transcription):
# Format the immediate with the transcription
immediate = f"{transcription}nnGive me the abstract, audio system, key discussions, and motion objects with homeowners"
# Call Bedrock for summarization
response = bedrock_runtime.invoke_model(
modelId="anthropic.claude-3-5-sonnet-20240620-v1:0",
physique=json.dumps({
"immediate": immediate,
"max_tokens_to_sample": 4096,
"temperature": 0.7,
"top_p": 0.9,
})
)
# Extract and return the abstract
outcome = json.hundreds(response.get('physique').learn())
return outcome.get('completion')
A vital part of our resolution is the automated redaction of PII. We carried out this utilizing Amazon Bedrock Guardrails to help compliance with privateness rules:
def apply_guardrail(bedrock_runtime, content material, guardrail_id):
# Format content material in keeping with API necessities
formatted_content = [{"text": {"text": content}}]
# Call the guardrail API
response = bedrock_runtime.apply_guardrail(
guardrailIdentifier=guardrail_id,
guardrailVersion="DRAFT",
supply="OUTPUT", # Using OUTPUT parameter for correct move
content material=formatted_content
)
# Extract redacted textual content from response
if 'motion' in response and response['action'] == 'GUARDRAIL_INTERVENED':
if len(response['outputs']) > 0:
output = response['outputs'][0]
if 'textual content' in output and isinstance(output['text'], str):
return output['text']
# Return authentic content material if redaction fails
return content material
When PII is detected, it’s changed with sort indicators (for instance, {PHONE} or {EMAIL}), ensuring that summaries stay informative whereas defending delicate knowledge.
To handle the complicated processing pipeline, we use Step Functions to orchestrate the Lambda features:
{
"Comment": "Audio Summarization Workflow",
"StartAt": "TranscribeAudio",
"States": {
"TranscribeAudio": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": {
"PerformName": "WhisperTranscriptionPerform",
"Payload": {
"bucket": "$.bucket",
"key": "$.key"
}
},
"Next": "DetermineSpeakers"
},
"DetermineSpeakers": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": {
"PerformName": "SpeakerIdentificationFunction",
"Payload": {
"Transcription.$": "$.Payload"
}
},
"Next": "GenerateSummary"
},
"GenerateSummary": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": {
"PerformName": "BedrockSummaryFunction",
"Payload": {
"SpeakerIdentification.$": "$.Payload"
}
},
"End": true
}
}
}
This workflow makes positive every step completes efficiently earlier than continuing to the following, with computerized error dealing with and retry logic in-built.
Test the answer
After you’ve efficiently accomplished the deployment, you should use the CloudEntrance URL to check the answer performance.

Security issues
Security is a vital facet of this resolution, and we’ve carried out a number of greatest practices to help knowledge safety and compliance:
- Sensitive knowledge redaction – Automatically redact PII to guard consumer privateness.
- Fine-Grained IAM Permissions – Apply the precept of least privilege throughout AWS companies and sources.
- Amazon S3 entry controls – Use strict bucket insurance policies to restrict entry to licensed customers and roles.
- API safety – Secure API endpoints utilizing Amazon Cognito for consumer authentication (non-compulsory however really useful).
- CloudEntrance safety – Enforce HTTPS and apply trendy TLS protocols to facilitate safe content material supply.
- Amazon Bedrock knowledge safety – Amazon Bedrock (together with Amazon Bedrock Marketplace) protects buyer knowledge and doesn’t ship knowledge to suppliers or prepare utilizing buyer knowledge. This makes positive your proprietary info stays safe when utilizing AI capabilities.
Clean up
To forestall pointless fees, be sure that to delete the sources provisioned for this resolution whenever you’re performed:
- Delete the Amazon Bedrock guardrail:
- On the Amazon Bedrock console, within the navigation menu, select Guardrails.
- Choose your guardrail, then select Delete.
- Delete the Whisper Large V3 Turbo mannequin deployed by means of the Amazon Bedrock Marketplace:
- On the Amazon Bedrock console, select Marketplace deployments within the navigation pane.
- In the Managed deployments part, choose the deployed endpoint and select Delete.
- Delete the AWS CDK stack by working the command
cdk destroy, which deletes the AWS infrastructure.
Conclusion
This serverless audio summarization resolution demonstrates the advantages of mixing AWS companies to create a classy, safe, and scalable software. By utilizing Amazon Bedrock for AI capabilities, Lambda for serverless processing, and CloudEntrance for content material supply, we’ve constructed an answer that may deal with giant volumes of audio content material effectively whereas serving to you align with safety greatest practices.
The computerized PII redaction characteristic helps compliance with privateness rules, making this resolution well-suited for regulated industries akin to healthcare, finance, and authorized companies the place knowledge safety is paramount. To get began, deploy this structure inside your AWS atmosphere to speed up your audio processing workflows.
About the Authors
Kaiyin Hu is a Senior Solutions Architect for Strategic Accounts at Amazon Web Services, with years of expertise throughout enterprises, startups, {and professional} companies. Currently, she helps clients construct cloud options and drives GenAI adoption to cloud. Previously, Kaiyin labored within the Smart Home area, helping clients in integrating voice and IoT applied sciences.
Sid Vantair is a Solutions Architect with AWS protecting Strategic accounts. He thrives on resolving complicated technical points to beat buyer hurdles. Outside of labor, he cherishes spending time along with his household and fostering inquisitiveness in his kids.
HI-FI News
by way of AWS Machine Learning Blog https://ift.tt/vF9CSYa
June 6, 2025 at 07:42PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








