Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»Building intelligent AI voice agents with Pipecat and Amazon Bedrock – Part 2

    Building intelligent AI voice agents with Pipecat and Amazon Bedrock – Part 2

    July 11, 2025

    Voice AI is changing the way we use technology, allowing for more natural and intuitive conversations. Meanwhile, advanced AI agents can now understand complex questions and act autonomously on our behalf.

    In Part 1 of this series, you learned how you can use the combination of Amazon Bedrock and Pipecat, an open source framework for voice and multimodal conversational AI agents to build applications with human-like conversational AI. You learned about common use cases of voice agents and the cascaded models approach, where you orchestrate several components to build your voice AI agent.

    In this post (Part 2), you explore how to use speech-to-speech foundation model, Amazon Nova Sonic, and the benefits of using a unified model.

    Architecture: Using Amazon Nova Sonic speech-to-speech

    Amazon Nova Sonic is a speech-to-speech foundation model that delivers real-time, human-like voice conversations with industry-leading price performance and low latency. While the cascaded models approach outlined in Part 1 is flexible and modular, it requires orchestration of automatic speech recognition (ASR), natural language processing (NLU), and text-to-speech (TTS) models. For conversational use cases, this might introduce latency and result in loss of tone and prosody. Nova Sonic combines these components into a unified model that processes audio in real time with a single forward pass, reducing latency while streamlining development.

    By unifying these capabilities, the model can dynamically adjust voice responses based on the acoustic characteristics and conversational context of the input, creating more fluid and contextually appropriate dialogue. The system recognizes conversational subtleties such as natural pauses, hesitations, and turn-taking cues, allowing it to respond at appropriate moments and seamlessly manage interruptions during conversation. Amazon Nova Sonic also supports tool use and agentic RAG with Amazon Bedrock Knowledge Bases enabling your voice agents to retrieve information. Refer to the following figure to understand the end-to-end flow.

    End-to-end architecture diagram of voice-enabled AI agent orchestrated by Pipecat, featuring real-time processing and AWS services

    The choice between the two approaches depends on your use case. While the capabilities of Amazon Nova Sonic are state-of-the-art, the cascaded models approach outlined in Part 1 might be suitable if you require additional flexibility or modularity for advanced use cases.

    AWS collaboration with Pipecat

    To achieve a seamless integration, AWS collaborated with the Pipecat team to support Amazon Nova Sonic in version v0.0.67, making it straightforward to integrate state-of-the-art speech capabilities into your applications.

    Kwindla Hultman Kramer, Chief Executive Officer at Daily.co and Creator of Pipecat, shares his perspective on this collaboration:

    “Amazon’s new Nova Sonic speech-to-speech model is a leap forward for real-time voice AI. The bidirectional streaming API, natural-sounding voices, and robust tool-calling capabilities open up exciting new possibilities for developers. Integrating Nova Sonic with Pipecat means we can build conversational agents that not only understand and respond in real time, but can also take meaningful actions; like scheduling appointments or fetching information-directly through natural conversation. This is the kind of technology that truly transforms how people interact with software, making voice interfaces faster, more human, and genuinely useful in everyday workflows.”

    “Looking forward, we’re thrilled to collaborate with AWS on a roadmap that helps customers reimagine their contact centers with integration to Amazon Connect and harness the power of multi-agent workflows through the Strands agentic framework. Together, we’re enabling organizations to deliver more intelligent, efficient, and personalized customer experiences—whether it’s through real-time contact center transformation or orchestrating sophisticated agentic workflows across industries.”

    Getting started with Amazon Nova Sonic and Pipecat

    To guide your implementation, we provide a comprehensive code example that demonstrates the basic functionality. This example shows how to build a complete voice AI agent with Amazon Nova Sonic and Pipecat.

    Prerequisites

    Before using the provided code examples with Amazon Nova Sonic, make sure that you have the following:

    • Python 3.12+
    • An AWS account with appropriate AWS Identity and Access Management (IAM) permissions for Amazon Bedrock, Amazon Transcribe, and Amazon Polly
    • Access to Amazon Nova Sonic on Amazon Bedrock
    • Access to an API key for Daily
    • A modern web browser (such as Google Chrome or Mozilla Firefox) with WebRTC support

    Implementation steps

    After you complete the prerequisites, you can start setting up your sample voice agent:

    1. Clone the repository:
    git clone https://github.com/aws-samples/build-intelligent-ai-voice-agents-with-pipecat-and-amazon-bedrock
    cd build-intelligent-ai-voice-agents-with-pipecat-and-amazon-bedrock/part-2
    1. Set up a virtual environment:
    cd server
    python3 -m venv
    venv source venv/bin/activate # On Windows: venvScriptsactivate
    pip install -r requirements.txt
    1. Create a .env file with your credentials:
    DAILY_API_KEY=your_daily_api_key
    AWS_ACCESS_KEY_ID=your_aws_access_key_id
    AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
    AWS_REGION=your_aws_region
    1. Start the server:
    python server.py
    1. Connect using a browser at http://localhost:7860 and grant microphone access.
    2. Start the conversation with your AI voice agent.

    Customize your voice AI agent

    To customize your voice AI agent, start by:

    1. Modifying bot.py to change conversation logic.
    2. Adjusting model selection in bot.py for your latency and quality needs.

    To learn more, see the README of our code sample on Github.

    Clean up

    The preceding instructions are for setting up the application in your local environment. The local application will uses AWS services and Daily through IAM and API credentials. For security and to avoid unanticipated costs, when you’re finished, delete these credentials so that they can no longer be accessed.

    Amazon Nova Sonic and Pipecat in action

    The demo showcases a scenario for an intelligent healthcare assistant. The demo was presented at the keynote in AWS Summit Sydney 2025 by Rada Stanic, Chief Technologist and Melanie Li, Senior Specialist Solutions Architect – Generative AI.

    The demo showcases a simple fun facts voice agent in a local environment using SmallWebRTCTransport. As the user speaks, the voice agent provides transcription in real-time as displayed in the terminal.

    Enhancing agentic capabilities with Strands Agents

    A practical way to boost agentic capability and understanding is to implement a general tool call that delegates tool selection to an external agent such as a Strands Agent. The delegated Strands Agent can then reason or think about your complex query, perform multi-step tasks with tool calls, and return a summarized response.

    To illustrate, let’s review a simple example. If the user asks a question like: “What is the weather like near the Seattle Aquarium?”, the voice agent can delegate to a Strands agent through a general tool call such as handle_query.

    The Strands agent will handle the query and think about the task, for example:

    <thinking>I need to get the weather information for the Seattle Aquarium. To do this, I need the latitude and longitude of the Seattle Aquarium. I will first use the 'search_places' tool to find the coordinates of the Seattle Aquarium.</thinking> 

    The Strands Agent will then execute the search_places tool call, a subsequent get_weather tool call, and return a response back to the parent agent as part of the handle_query tool call. This is also known as the agent as tools pattern.

    To learn more, see the example in our hands-on workshop.

    Conclusion

    Building intelligent AI voice agents is more accessible than ever through the combination of open source frameworks such as Pipecat, and powerful foundation models on Amazon Bedrock.

    In this series, you learned about two common approaches for building AI voice agents. In Part 1, you learned about the cascaded models approach; diving into each component of a conversational AI system. In Part 2, you learned about how using Amazon Nova Sonic, a speech-to-speech foundation model, can simplify implementation and unify these components into a single model architecture. Looking ahead, stay tuned for exciting developments in multi-modal foundation models, including the upcoming Nova any-to-any models—these innovations will continually improve your voice AI applications.

    Resources

    To learn more about voice AI agents, see the following resources:

    • Explore our code sample on Github
    • Try our hands-on-workshop: Building intelligent voice AI agents with Amazon Nova Sonic, Amazon Bedrock and Pipecat

    To get started with your own voice AI project, contact your AWS account team to explore an engagement with AWS Generative AI Innovation Center (GAIIC).


    About the Authors

    Adithya Suresh is a Deep Learning Architect at AWS Generative AI Innovation Center based in Sydney, where he collaborates directly with enterprise customers to design and scale transformational generative AI solutions for complex business challenges. He leverages AWS generative AI services to build bespoke AI systems that drive measurable business value across diverse industries.

    Daniel Wirjo is a Solutions Architect at AWS, with focus across AI and SaaS startups. As a former startup CTO, he enjoys collaborating with founders and engineering leaders to drive growth and innovation on AWS. Outside of work, Daniel enjoys taking walks with a coffee in hand, appreciating nature, and learning new ideas.

    Karan Singh is a Generative AI Specialist at AWS, where he works with top-tier third-party foundation model and agentic frameworks providers to develop and execute joint go-to-market strategies, enabling customers to effectively deploy and scale solutions to solve enterprise generative AI challenges.

    Melanie Li, PhD is a Senior Generative AI Specialist Solutions Architect at AWS based in Sydney, Australia, where her focus is on working with customers to build solutions leveraging state-of-the-art AI and machine learning tools. She has been actively involved in multiple Generative AI initiatives across APJ, harnessing the power of Large Language Models (LLMs). Prior to joining AWS, Dr. Li held data science roles in the financial and retail industries.

    Osman Ipek is a seasoned Solutions Architect on Amazon’s Artificial General Intelligence team, specializing in Amazon Nova foundation models. With over 12 years of experience in software and machine learning, he has driven innovative Alexa product experiences reaching millions of users. His expertise spans voice AI, natural language processing, large language models and MLOps, with a passion for leveraging AI to create breakthrough products.

    Xuefeng Liu leads a science team at the AWS Generative AI Innovation Center in the Asia Pacific regions. His team partners with AWS customers on generative AI projects, with the goal of accelerating customers’ adoption of generative AI.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleFraud detection empowered by federated learning with the Flower framework on Amazon SageMaker AI
    Next Article Uphold ethical standards in fashion using multimodal toxicity detection with Amazon Bedrock Guardrails

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    July 22, 2025
    Machine Learning

    Boolformer: Symbolic Regression of Logic Functions with Transformers

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2024-12143 – Mobilteg Mobile Informatics Mikro Hand Terminal SQL Injection

    Common Vulnerabilities and Exposures (CVEs)

    Laid off but not afraid with X-senior Microsoft Dev MacKevin Fey [Podcast #173]

    Development

    CVE-2025-5711 – Real Estate Property Management System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2015-0849 – Pycode-Browser File Predictability Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Development

    How to Build Your First Website in 10 Minutes (No Coding Required)

    June 22, 2025

    Building a website might seem like a daunting task, especially if you have no experience with coding. But thanks to modern website builders, you can create a stunning, fully functional website in just 10 minutes. Whether you want a personal blog, an online portfolio, or a small business site, this guide will walk you through the process step by step—no technical skills required!Step 1: Choose a Website BuilderWebsite builders are platforms that make it easy to design, customize, and publish websites without needing to write a single line of code. Here are some popular options:Wix: Best for beginners with drag-and-drop functionality.Squarespace: Great for sleek, professional designs.WordPress.com: Excellent for bloggers and content-heavy sites.Shopify: Ideal for e-commerce websites.Tip: Choose a builder that aligns with your website’s purpose. For this tutorial, we’ll use Wix for its user-friendly interface and variety of templates.Step 2: Sign Up and Pick a TemplateSign Up: Go to the website builder’s homepage and create a free account. Enter your email and a password to get started.Pick a Template: After signing up, you’ll be prompted to choose a template. Templates are pre-designed layouts that act as a foundation for your website.Browse categories like “Portfolio,” “Blog,” or “Business.”Select a design that suits your style and purpose.Example: If you’re starting a photography portfolio, look for a template with a clean design and image galleries.Step 3: Customize Your WebsiteNow comes the fun part—customizing your site to make it uniquely yours.Edit Text: Click on any text box to replace the default text with your own. Add your name, business info, or a catchy tagline.Add Images: Upload your own photos or choose from the builder’s stock image library. Drag and drop images into place.Change Colors and Fonts: Most builders allow you to customize colors and fonts to match your branding.Add Pages: Need more than a homepage? Add additional pages like “About,” “Services,” or “Contact” with just a click.Tip: Keep your design clean and straightforward. Too many elements can make your site look cluttered.Step 4: Add Essential FeaturesMake your website functional by integrating essential features:Contact Form: Allow visitors to reach you easily. Drag and drop a contact form onto your page and customize the fields.Social Media Links: Add clickable icons that link to your social profiles.SEO Settings: Optimize your site for search engines by adding keywords to your page titles and descriptions.Mobile Optimization: Check how your site looks on mobile devices and make adjustments if needed.Example: Add a “Subscribe” button to collect email addresses for your newsletter.Step 5: Preview and PublishPreview Your Site: Before publishing, use the preview option to see how your site will appear to visitors. Look for any typos, broken links, or design issues.Publish: Once you’re satisfied, hit the “Publish” button. Your site is now live and accessible to the world!Get a Custom Domain: While most website builders offer free domains (e.g., yoursite.wixsite.com), upgrading to a custom domain (e.g., yoursite.com) gives your site a professional touch.Tip: Promote your site by sharing the link on social media or through email.Step 6: Keep ImprovingBuilding your website is just the beginning. To keep it fresh and engaging:Regularly update your content.Add new pages or blog posts.Analyze visitor data using tools like Google Analytics.Upgrade to premium plans for advanced features like e-commerce or ad-free hosting.Final ThoughtsCreating a website has never been easier. With a little time and creativity, you can have your own corner of the internet up and running in just 10 minutes. Whether it’s for personal or professional use, your website is a reflection of you—so make it count!

    CVE-2025-42977 – SAP NetWeaver Visual Composer Directory Traversal Vulnerability

    June 9, 2025

    Mastering API Integration in React Native: A Step-by-Step Success Blueprint🔗

    June 18, 2025

    CVE-2025-48740 – StrangeBee TheHive CSRF

    May 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.