AssemblyAI

How to build voice agent with AssemblyAI TTS & Livekit

Published 2026-10-28 · Duration 8:41

Summary

This guide demonstrates how to build a sophisticated voice agent by seamlessly integrating three core AI components: Speech-to-Text (STT), Large Language Model (LLM) processing, and Text-to-Speech (TTS). The process is streamlined using AssemblyAI's models and LiveKit, allowing developers to build complex agents—including those with tool calling capabilities—with minimal setup. The final steps cover advanced features like cloning custom voices and connecting the agent to a phone number.

Download summary

Key takeaways

  1. Three Pillars of a Voice Agent

    A voice agent requires three components: 1) Speech-to-Text (STT) for the 'ears,' 2) an LLM (the 'brain') for logic, and 3) Text-to-Speech (TTS) for the 'voice.' AssemblyAI provides seamless models for all three.

  2. Simplified Agent Setup 2:00

    The setup process is simplified by using a reference repository (AssemblyAI/LiveKit) and providing the AssemblyAI API key, allowing the framework to automatically configure STT, LLM, and TTS.

  3. Implementing Tool Calling 5:50

    LLMs can be enhanced with tool calling (e.g., `get_weather`). When the agent detects a need for external data (like weather), it can automatically call a defined function, making the agent smarter and more functional.

  4. Custom Voice Cloning 7:10

    The TTS model supports voice cloning. Users can clone a voice using as little as 20 seconds of audio and can access over 4,000 voices across multiple accents and languages.

Technical details

  • Voice Agent Architecture 0s

    The system relies on three integrated models: AssemblyAI's Speech-to-Text model, an LLM gateway (e.g., GPT-3.5 or a default OpenAI model), and AssemblyAI's Text-to-Speech model.

  • LiveKit Integration 130s

    LiveKit is used as the open-source voice agent provider. The process involves cloning the reference repository, installing the LiveKit CLI, and providing the AssemblyAI API key to initialize the agent.

  • Agent Customization 190s

    Developers can customize the agent by defining system prompts, setting specific keywords (e.g., names, medical terms) to improve recognition, and defining custom instructions (e.g., what to say when the customer says 'goodbye').

  • Tool Calling Mechanism 320s

    Tool calling allows the LLM to detect when external information is needed (e.g., weather) and automatically execute a defined function (e.g., `get_weather`) using an API service.

  • Deployment and Calling 400s

    LiveKit provides a service to connect the voice agent to a phone number, enabling the agent to make calls on the user's behalf.

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.