
Explore a production voice AI that handles an inbound complaint call end-to-end on real telecom lines, registering a complaint with name, mobile, city, and area, and issuing a complaint number.
This live demo shows an outbound eye hospital call delivering cataract surgery post-operative precautions, such as eye drops and avoiding water and dust, and a follow-up reminder.
Explore the centralized monitoring dashboard for the voice AI system, showing inbound and outbound call history, caller details, duration, timestamp, and full call recordings.
Build a production-ready ai voice agent for real sip calls. Using docker and python, enable hindi and english conversations with best tts, call recordings, transcripts, and a secure dashboard.
Discover a production-ready voice AI course built on real SIP trunking and live phone calls, using Docker and LiveKit, with recordings, transcripts, and a secure dashboard for scalable deployments.
Explain call flow from a caller dialing a normal number to an AI receptionist. Vopiz AI bridges the phone network to LiveKit, enabling stt, llm, and tts in real time.
Understand how real production AI voice systems operate, including PSTN, SIP and SIP trunks, inbound and outbound call flows, and credentials, and explore the complete architecture in real-world scenarios.
Explore the public switched telephone network, or PSTN, and its circuit-based calls that connect traditional 10-digit numbers through providers like Airtel, Jio, BSNL, and Vodafone under TRIA rules in India.
SIP, the session initiation protocol, is an internet-based call signaling system that sets up, manages, and terminates calls, while the voice travels via RTP.
Compare PSTN and SIP: PSTN for traditional mobile calls over SIM cards and mobile towers, SIP for internet-based voice over IP; production AI use SIP, not raw PSTN.
Trace inbound calls from a customer dialing a business number through the PSTN to SIP, arriving at your cloud-based AI voice agent for support and inquiries.
Identify outbound calls where a voice AI agent initiates contact with the customer, such as reminders or verifications, following the flow from system to sip to telecom to the user.
Understand how a SIP trunk acts as the virtual connection between the telecom provider and your server, carrying SIP calls and enabling multiple inbound and outbound routes over the internet.
Outlines how outbound calls travel from your AI system through the SIP trunk to the telecom provider and then to the customer's phone, with SIP requests enabling the connection.
Securely connect to a sip trunk by configuring sip credentials, including username, password, server address, and port, and enable outbound calls through verified authentication or rejection.
Explore how production ai voice systems route calls from pstn through sip trunks to a livekit gateway and ubuntu ai server performing stt, llm, and tts in real time.
Build the aws infrastructure for a production voice ai system by launching an ubuntu ec2 instance, configuring security groups and ports, installing docker, and setting up the agent server.
Launch an Ubuntu EC2 instance as voice AI agent in AWS, assign a public IP, open SSH, SIP, and media ports via security groups, install Docker, and run AI agent.
Launch an Ubuntu 22.04 LTS EC2 instance in Mumbai with a c6i.xlarge, 4 vCPU and 8 GB RAM, to host a voice AI agent, and set storage to 30 GB.
Connect to an AWS VM using MobaXterm via SSH with the public IP, Ubuntu user, and private key; then update the system with sudo apt update.
Containerize a production ai voice agent on ubuntu using docker to orchestrate stt, llm, and tts with livekit testing, including agent.py and prompts.py in the dockerfile for deployment.
Install docker on Ubuntu by adding the apt repository and installing docker packages. Verify with docker --version and systemctl status, then pull the hello world image.
Create the agent.py file to run the voice AI agent, handling speech-to-text, AI response generation, and text-to-speech in real time during a LiveKit call or session.
Explore the voice ai agent script, load .env keys for DeepGram, OpenAI, and LiveKit, and learn how prompts, agent_instruction, and the main entry point coordinate tts and stt.
Set up the main entry point for the voice AI agent in LiveKit, connect via WebRTC, and initialize an agent session with DeepGram, OpenAI, and Cartesia TTS.
Tune voice activity detection (VAD) in agent.py using the LiveKit Scelario plugin, adjusting activation threshold, minimum speech duration, minimum silence duration, prefix padding duration, and endpoint delays to reduce latency.
Start the session to connect the agent room audio with livekit and apply browser noise cancellation; speech-to-text via deep gram feeds an llm and cartesia delivers the voice response.
Create API keys for DeepGram, OpenAI, Cartesia, and LiveKit, store the DeepGram_API_key in a .env file for the voice AI agent, and prepare for the next lecture.
Explore how LiveKit delivers open-source, real-time audio and video communication for AI voice agents, enabling real-time streaming and cross-platform integration via simple APIs.
Discover why we use LiveKit for our AI project: open source, real-time voice, low latency, secure WebRTC, scalable hosting on AWS or GCP, with Anthropic, OpenAI or Bedrock.
Learn to configure a LiveKit voice AI agent and build a simple voice assistant in under 10 minutes using Python, backend setup, and STT LLM TTS pipelines with OpenAI.
Explore how LiveKit enables real-time audio streaming for web and apps, managing rooms and participants with WebRTC, and support for SIP trunking for phone calls.
Create a LiveKit account and a first project for your voice agent, then generate API keys and integrate them into a .env file on your Ubuntu server.
Develop prompts.py for a voice AI agent powered by ChatGPT that powers a general complaint board helpline, defining role, tone, rules, questions, and multilingual dialogue with immediate, natural responses.
Create a requirements.txt listing all Python dependencies to run the voice AI agent, including LiveKit, DeepGram, OpenAI, Cartesia, Boto3, AIO-STTP, and python-.env for environment management.
Create a docker image for voice ai agent using python 3.11-slim, set unbuffered mode and Asia/Kolkata, install audio libraries, copy agent files, expose port 8081, and run python agent.py star.
Build the docker image from the dockerfile using docker build -t to tag it with a name, then prepare to run a docker container.
Launch the voice ai agent by running the docker image as a detached container with the .env file, then verify with docker ps and docker logs -f.
The lecture demonstrates testing the voice AI agent with LiveKit Playground, showing the agent connected as a worker, authenticated with API keys and secret, and ready to accept voice jobs.
Learn how to change the TTS provider to Servam Bulbul v3 for more natural English voices, and configure the Python-based voice AI agent with the Servam API code.
Learn to integrate Servam TTS into your voice ai agent by configuring en-in, Ritu, Bulbul v2/v3, pace, and pre-processing, and updating the LiveKit plugin from Cartesia.
Add the required TTS entry for Servam and install the LiveKit plugin for Servam, then rebuild the Docker image and retest the voice in the LiveKit playground.
Learn how to rebuild a docker image after updating agent.py, including stopping containers, removing old images, and building with a new tts plugin named sarvan.
Relaunch the voice AI agent in a docker container using docker run with an env file and a container name, then verify with docker ps and docker logs on LiveKit.
Test ttl configurations in agent.py using servam ai by adding the Sarvam API key, restart the docker container, and validate the new tts voice in livekit.
Connect AI voice agents via SIP and map the end-to-end flow from PSTN through a LiveKit SIP gateway to an Ubuntu AI server for speech-to-text, language model processing, and text-to-speech.
Select a SIP provider, purchase a DID, and configure inbound and outbound trunks with an origination URI and credential list to enable production calls via LiveKit.
In This Course, You Will Build
In this course, you will design and deploy a complete production-grade Voice AI system, including:
A live Inbound AI Complaint Board that answers real phone calls (+91, India Number)
A real Outbound AI Calling System for an Eye Hospital
A centralized Voice AI Dashboard to monitor and manage call activity
A fully deployed Voice AI agent on AWS EC2 (Ubuntu)
A containerized architecture using Docker
End-to-end SIP trunk integration with a real telecom provider
Live media routing using LiveKit
A complete STT → LLM → TTS pipeline for real-time voice intelligence
Scalable infrastructure capable of handling concurrent calls
Dashboard Deployment to Monitor Voice Call Records
In India, the approximate call cost comes to ₹1–₹1.5 per minute (all-inclusive) depending on usage and provider configuration.
By the end of this course, you will have a fully functional, telecom-integrated AI voice system that can answer and make real inbound and outbound phone calls in a production environment.
Course Curriculum
Course Introduction: Live Voice AI System
Live Demo – Complaint Board Inbound
Live Demo – Eye Hospital Outbound
Live Demo – Voice AI Dashboard
What You Will Build in This Course
What Makes This Voice AI Course Different
End-to-End Call Flow
Voice AI and SIP Telephony Fundamentals
What You Will Learn in This Module
Understanding PSTN (Public Switched Telephone Network)
What Is SIP (Session Initiation Protocol)?
PSTN vs SIP
Inbound Call Flow
Outbound Call Flow
SIP Trunk in Inbound Call Flow
SIP Trunk in Outbound Call Flow
Understanding SIP Credentials
How Production AI Voice Systems Work
AWS Infrastructure and Server Setup for a Voice AI Agent
What You Will Learn in This Module
Ubuntu EC2 Server (Voice AI Agent Server)
Creating an Ubuntu EC2 Instance
Accessing the Server via MobaXterm
Ubuntu AI Server (STT => LLM => TTS)
Docker Setup for Voice AI Agent
Developing the Voice AI Agent Code
Overview of Voice AI Agent Code
Deep Dive into the Voice AI Agent Script – Part 1
Deep Dive into the Voice AI Agent Script – Part 2
Deep Dive into the Voice AI Agent Script – Part 3
Deep Dive into the Voice AI Agent Script – Part 4
Setting Up API Keys (STT → LLM → TTS)
Deepgram, OpenAI, and Cartesia API Keys
Why Do We Need Livekit
What is Livekit
Why We Use Livekit for Our AI Project
LiveKit Documentation Overview
What Problem Does Livekit Solve?
Setting Up LiveKit Account and APIs
Configuring Prompts, Dependencies, and Dockerfile
Developing prompts for the Voice AI Agent
Required Python Dependencies
Building the Dockerfile for the Voice AI Agent
Run the Voice AI Agent in a Docker Container
Build the Docker Image Using a Dockerfile
Launch the Voice AI Agent in a Docker Container
Test the Voice AI Agent Using LiveKit Playground
Sarvam AI TTS (Text-to-Speech) for the Voice AI Agent
Sarvam AI Bulbul V3 TTS: Overview
Integrate Sarvam TTS into Our Voice Agent
Add the Sarvam ai Plugin for LiveKit Agents
Recreate the Docker Image of the Voice Agent
Relaunch the Voice AI Agent in a Docker Container
Add the Sarvam API and Test the New Voice
Connecting AI Voice Agents Using SIP
SIP-Based Integration of AI Voice Agents
SIP Provider Selection
VoBiz AI Account Setup & DID Provisioning (Telecom Provider)
Create an Account in VoBiz AI (Telecom Provider)
Purchase a DID Number
VoBiz AI DID supports 10 concurrent calls
Inbound SIP Trunk at the Telecom Layer
Create a Inbound Trunk
Create an Origination URI
Link the DID Number to the Inbound Trunk
Add Agent Name in EntryPoint (agent,py)
Rebuild and Relaunch the Container
Inbound SIP Trunk Configuration in LiveKit
LiveKit: Inbound SIP Trunk Setup
Create a Inbound Trunk
Dial the DID Number and Test the Voice AI Agent
Building an Outbound Voice AI System for an Eye Hospital
Outbound Call Flow – Complete Overview
Create Outbound SIP Trunk
Create an Outbound Trunk in LiveKit
Project Overview – Outbound AI Calling System
Agent Creation – agent,py
Project File Setup – Prompts & Dependencies
Dockerfile Setup
Build Voice AI Agent Docker Image
Run Voice AI Agent Container
Create Python Environment
Install Python Dependencies
Trigger Outbound Call
Voice Optimization and Final Call Testing
Modifying TTS Pace and Pitch
Re-Trigger the Outbound Call
Call Handling Capacity and Scalability
What You Will Learn in This Module
System Architecture Overview
Vobiz AI Channel Allocation (Telecom Provider)
EC2 Instance Configuration – c6i.xlarge
Real-Time Testing Results
Theroretical vs Practical Limit
When Performance May Degrade
Building a Production-Ready Client Dashboard
Voice AI System – What We Have Built
Why Voice AI Dashboard becomes essential?
What We Will Build
Last Lecture
Dashboard Deployment to Monitor Voice Call Records
Voice AI Agent Dashboard Overview
Installing NGINX for the Dashboard
Clone the Git Repository
Configure NGINX for the Dashboard
Update the Domain A Record
Troubleshoot NGINX Issues
Verify Dashboard Access via HTTP
Installing HTTPS Packages with Certbot
Generate and Deploy SSL Certificate Using Certbot
Finally Access the Dashboard Over HTTPS
Last Lecture