Dev.to AI 🤖 Ai 👁 2 📖 6 min read

What Is a Voice Agent? AI That Talks on the Phone

A voice agent is an AI system that makes and receives phone calls, understands what the other person says, and replies in natural speech, with no human on the agent side. It is the AI equivalent of a call centre agent, b

What Is a Voice Agent? AI That Talks on the Phone

A voice agent is an AI system that makes and receives phone calls, understands what the other person says, and replies in natural speech, with no human on the agent side. It is the AI equivalent of a call centre agent, but it can run many calls at once and works at any hour.

Voice agents are different from chatbots, which communicate by text, and from traditional IVRs, which follow fixed menus. They hold natural, open-ended conversations and cope with follow-up questions, changes of topic and unexpected input that neither a chatbot nor an IVR can manage.

Note: Key takeaways

  • A voice agent has four parts: speech-to-text to listen, a language model to understand and decide, text-to-speech to speak, and telephony to connect it to the phone network.
  • Inbound agents answer calls; outbound agents make them.
  • Natural language is the difference from IVR. No "press 1 for sales".
  • Speed matters. Each turn must come back quickly for the conversation to feel natural.
  • Outbound agents follow outbound rules, such as consent, do-not-call lists and local caller ID requirements.

What is a voice agent?

A voice agent is software that takes part in a phone call as an active participant. It listens to audio from the other end, turns it into text with speech recognition, writes a reply with a language model, turns the reply back into audio with text-to-speech, and plays it into the call, all in real time, a turn at a time.

To the caller it feels like talking to a person: it responds to what they say, remembers what was said earlier in the call, asks follow-up questions and copes with unexpected phrasing.

What are the four components of a voice agent?

1. Telephony (the phone line)

The agent needs a way to make and receive real phone calls. That takes:

  • A phone number, such as a DID number for inbound calls, and a number that meets local caller ID rules for outbound calls
  • A SIP trunk that routes calls between the phone network and your AI pipeline
  • A two-way audio stream so your pipeline can send synthesised speech back into the call

Vobiz provides all three. When a call connects, Vobiz streams audio to your AI pipeline over a WebSocket and plays back whatever audio your pipeline returns.

2. Speech-to-text (the ears)

Speech-to-text turns the caller's audio into text. Modern streaming recognition sends partial transcripts while the caller is still speaking, which is essential for quick replies. It has to cope with:

  • Background noise and narrowband telephone audio
  • The caller's accent and speaking style
  • Domain vocabulary such as medical terms and product names

3. Large language model (the brain)

The language model reads the caller's transcript, the conversation so far and your system prompt, which sets the agent's role, knowledge, tone and decision rules, and writes the agent's next reply.

The system prompt is where the agent's "personality" lives. It tells the model what the agent is called, what it knows, what it can and cannot do, and how to handle edge cases.

4. Text-to-speech (the voice)

Text-to-speech turns the model's reply into audio. Streaming synthesis starts playing before the full sentence is ready, which cuts the pause the caller hears. The voice you choose, its tone, accent and gender, shapes how callers receive the agent, and most providers offer dozens of options.

What is the difference between inbound and outbound voice agents?

Inbound voice agents answer calls to your number. Use cases: customer service, appointment booking, FAQs, after-hours cover and lead capture.

Outbound voice agents call a contact list. Use cases: appointment reminders, payment follow-ups, surveys, delivery confirmations and sales outreach. They need answering machine detection to confirm a person answered before the conversation starts.

  • Who starts the call: the caller (inbound) or your system (outbound)
  • Number needed: any inbound number (inbound) or one that meets the destination's outbound caller ID rules (outbound)
  • Answering machine detection: not needed (inbound) or required (outbound)
  • Regulation: light (inbound) or consent, do-not-call lists and caller ID rules (outbound)
  • Typical use: support and booking (inbound) or reminders and follow-ups (outbound)

How does a voice agent handle a conversation?

A typical inbound conversation with a voice agent. The call connects and the agent greets the caller. The caller asks about an order. The agent transcribes the request, recognises an order status question and asks for the order number. The caller reads it out. The agent looks up the order in the order system and says it is out for delivery today. The caller says thanks, the agent says goodbye, hangs up and posts the transcript and summary to the CRM.

On each turn the agent transcribes what the caller said, decides what it means and what to do, calls a tool such as your order system if needed, and speaks its reply. Each turn takes about a second, so the caller experiences a natural conversation.

How does a voice agent handle interruptions and edge cases?

Barge-in. If the caller starts talking while the agent is speaking, the agent should stop and respond to what the caller said rather than finish its sentence. The orchestration layer has to keep listening while the agent speaks and cut the speech stream when the caller talks.

Long silence. If the caller says nothing for a few seconds, the agent should ask "Are you still there?" or decide the call has ended and hang up politely.

Out-of-scope requests. If the caller asks for something outside the agent's role, the system prompt should tell the model to say so and either escalate to a person or explain what it can help with.

Failed understanding. If speech recognition returns a low-confidence transcript, the agent should ask the caller to repeat rather than guess.

How do you connect a voice agent to Vobiz?

Vobiz is the telephony layer. You build or configure the agent in the platform of your choice and connect it to Vobiz numbers and trunks.

No-code path (Vapi or Retell AI):

  1. Create a Vobiz account and get a phone number
  2. Set up your agent in Vapi or Retell AI: system prompt, voice and knowledge
  3. Connect Vobiz as the telephony provider in the dashboard
  4. Your agent can now make and receive calls

It usually takes well under an hour to the first call. See the Vapi dashboard guide or the Retell AI dashboard guide.

Custom build (Vobiz WebSocket stream):

Set your Vobiz number's webhook to tell Vobiz to open a two-way audio stream to your agent's WebSocket address and keep the call alive while it runs. Your server then receives small audio frames, runs them through speech-to-text, the model and text-to-speech, and sends audio back into the call. For a full example, see the LiveKit inbound agent template or the Pipecat integration guide.

What changes when you deploy in a new country?

Language. Accents and languages vary widely. Test speech recognition on real caller audio from your market, not just on generic test sets. For multilingual speech, providers such as Sarvam AI integrate natively with Vobiz.

Outbound compliance. Outbound agents must follow the destination's rules on consent, do-not-call lists and caller ID. Some countries assign number series by call purpose.

Latency. Carrier routes differ by country. Use a SIP trunk provider with good local carrier connections and media servers near your callers.

Which voice agent platforms work with Vobiz?

For step-by-step setup, see how to build an inbound AI voice agent or how to build an outbound AI voice agent.

Whichever platform runs your agent, Vobiz provides the phone numbers, SIP trunks and audio streaming that put it on a real call.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.