SELINA.ai
Sign in

How to Build an AI Voice Assistant: A Build-vs-Buy Primer for Your First Project

You have a use case. Maybe it is handling inbound support calls, maybe it is a hands-free interface for a product, maybe it is automating appointment scheduling. You know you want an AI based voice assistant, but you have not committed to a stack yet. Good. This is the right moment to think clearly about what you are actually building, what you should rent, and where the real costs hide. This guide covers how to build an AI voice assistant from the ground up, how to buy one off the shelf, and how to pick the hybrid middle path that most teams actually end up choosing.

Key Takeaways

What Does an AI Voice Assistant Actually Consist Of?

A voice assistant is a pipeline, not a monolith. At minimum, you need four components wired together in sequence.

Speech-to-text (STT/ASR): Converts the caller's or user's spoken audio into a text transcript. This is the ears.

Language model (LLM): Reads the transcript, reasons about it, and produces a text response. This is the brain.

Text-to-speech (TTS): Converts the LLM's text response back into spoken audio. This is the mouth.

Orchestration layer: Manages turn-taking, interruption handling, silence detection, and the connections between the other three. This is the nervous system.

Some newer architectures collapse the pipeline into a single audio-to-audio model, but most production systems in 2026 still use the four-component chain because it gives you control over each stage independently.

If you are building for telephony (phone calls), you also need a telephony integration layer, SIP trunking or a WebRTC gateway, to connect your pipeline to actual phone numbers. If you are building for a product interface (an app, a robot, a kiosk), you need a microphone input layer and a speaker output layer, which are simpler but still require low-latency audio streaming.

Should You Build, Buy, or Blend?

Build if you have a differentiated voice experience that is core to your product, if you need deep control over latency and data handling, and if you have the engineering team to maintain it. A 2026 analysis by Techsy puts the first-year cost of a custom build at $250K to $2M and the timeline at four to nine months.

Buy if your goal is to automate a well-understood workflow (appointment booking, FAQ handling, lead qualification) and you need to be live in days rather than months. SaaS platforms can deploy in five to fourteen days for $5K to $100K.

Blend if you want vendor-grade speech processing without giving up control of your business logic and data flow. This is the most common path. You use a hosted ASR and TTS service, wire them into your own orchestration and LLM layer, and keep the conversation logic in code you own.

The three-way split is real. Some teams also hire an agency or integrator to build custom flows on top of a platform, which works for about a quarter of the cases where the team lacks in-house voice expertise but still needs non-trivial customization.

What Does It Actually Cost to Buy a Voice AI Platform?

More than the sticker price. The real cost of a SaaS voice AI deployment often runs $0.15 to $0.33 per minute once you stack speech recognition, text-to-speech, LLM inference, telephony, and platform fees together. That is 2 to 4 times the headline rate most vendors advertise.

For context, the average inbound call handled by a human agent costs $7.16. So even at the higher end of per-minute pricing, a voice AI agent handling a three-minute call costs roughly $1, which is still a significant saving over human staffing. The economics work. Just do the math with real per-minute rates, not the number on the landing page.

Ask every vendor for a full cost breakdown that includes every sub-processor in the chain. If they cannot give you one, that is information too.

How Do You Pick the Best AI Voice Assistant Platform?

There is no single best AI voice assistant for every use case. The right platform depends on three things: your latency requirement, your data custody requirement, and whether you need telephony or an embedded interface.

For telephony-first deployments (call centers, appointment lines, outbound campaigns), platforms like Retell AI, Bland AI, and Vapi offer fast setup with built-in SIP and phone number provisioning. PolyAI launched an Agent Development Kit in April 2026 that lets developer teams build, test, version, and deploy voice agents in their own environments, bridging the gap between managed service and self-hosted.

For embedded or product-native voice (a robot, a kiosk, an app), LiveKit's open-source stack is worth evaluating. Its Apache-2.0 "LiveKit Agents" framework adds an AI participant to a real-time WebRTC room, orchestrating either a swappable STT-LLM-TTS pipeline or a single audio-to-audio model, with built-in interruption and turn detection.

For speech recognition specifically, Deepgram's Flux model shipped in 2026 with integrated end-of-turn detection built for voice agent use cases, which matters because accurate turn detection is the difference between a voice assistant that feels responsive and one that talks over the user.

Evaluate platforms on these concrete dimensions: end-to-end latency (measure it, do not trust the spec sheet), per-minute cost at your projected volume, sub-processor transparency (who handles ASR, LLM, TTS), data retention policies per sub-processor, and whether you can swap individual components later without re-architecting.

How Do You Build a Voice Assistant from Scratch?

Start with the pipeline. You are wiring together four services, and the quality of your assistant depends more on how well they are connected than on how good any single component is.

Step 1: Choose your STT engine

For cloud, the leading options are Deepgram (low latency, streaming support) and the ASR APIs from major cloud providers. For local or self-hosted, Whisper remains the standard open-source choice. It runs on consumer GPUs and delivers strong accuracy across languages.

Step 2: Choose your LLM

Cloud LLMs from frontier providers give you the best raw reasoning quality. Local LLMs via Ollama give you data custody and predictable cost. Ollama now ships with MLX support, delivering up to 90% faster inference on Apple Silicon. For most production deployments, cloud LLMs win on quality. For healthcare, financial services, or any use case where voice audio cannot leave your infrastructure, local inference is not just a privacy nicety, it is a regulatory requirement in an increasing number of jurisdictions.

Step 3: Choose your TTS engine

Cloud TTS from services like ElevenLabs or Play.ht produces the most natural-sounding voices. On the local side, the landscape shifted in 2026. Piper TTS, long the default open-source option, was archived in October 2025 (it still works, but is no longer actively maintained). Kokoro-82M emerged as the leading lightweight open-source TTS, and Chatterbox, an MIT-licensed model, reportedly beat ElevenLabs in a blind listening test.

Step 4: Wire the orchestration

This is where most builds stall. You need to handle streaming audio in and out, detect when the user has stopped talking (end-of-turn detection), manage interruptions (barge-in), and keep the round-trip latency under about 800 milliseconds for the conversation to feel natural. LiveKit Agents, the Wyoming protocol for Home Assistant integrations, or a custom WebSocket server are the common choices here.

Step 5: Connect to your channel

For telephony, you need a SIP trunk provider (Twilio, Telnyx, Vonage) and a media gateway. For in-app or embedded, you need a WebRTC or WebSocket audio stream from the client. This step is straightforward engineering but easy to underestimate in terms of edge cases: echo cancellation, codec negotiation, network jitter.

Can You Run a Voice Assistant Entirely Locally?

Yes. A fully local, open-source voice stack with zero cloud dependency is viable in 2026 and is getting better fast.

The reference stack documented by several builders this year uses five components: Whisper for STT, Ollama for the LLM, Piper (or now Kokoro or Chatterbox) for TTS, the Wyoming protocol as connective glue, and Home Assistant Assist as the intent engine. Everything runs on local hardware.

In July 2026, Hugging Face and Cerebras open-sourced a production-grade voice agent pipeline that already powers more than 9,000 Reachy Mini robots, with every cloud component explicitly swappable for a local alternative.

Latency on these local stacks now hits 1 to 2 seconds on consumer GPUs and 1 to 1.5 seconds on Apple Silicon. That is not quite as fast as optimized cloud APIs, but it is fast enough for many real-world interactions. And it comes with completely predictable costs (just hardware and electricity) and complete data custody.

Home Assistant also introduced a faster "Speech-to-Phrase" STT alternative in 2026, so if you are following older local-assistant tutorials, check whether the components they reference are still the current best option. This space moves fast enough that a guide from six months ago may already point to archived projects.

Who Touches the Audio? The Privacy Question You Should Ask First

Most build-vs-buy discussions treat the decision as a cost and speed tradeoff. That framing misses the most important axis: data custody.

A typical voice AI vendor stack is actually a chain of sub-processors. Separate companies handle ASR, LLM inference, TTS, analytics, and telephony. Each one touches your users' voice data. Each one has its own retention policy, its own infrastructure, and its own data-handling practices. Under regulations like GDPR and India's DPDP Act, your organization remains responsible for every sub-processor in that chain.

Before you evaluate latency, cost, or feature sets, map the sub-processor chain. For every vendor in your stack, answer these questions:

Many services claim they store audio only "temporarily" for processing. That word is loosely defined. Audio may be cached across servers, retained in backups, or captured in logging systems even after deletion from the primary database. Treat "temporary storage" as an engineering claim that requires verification, not a legal assurance.

The global average cost of a data breach reached $4.44 million in 2025, and voice data is increasingly cited as one of the riskiest categories because it is biometric, it is hard to anonymize, and it cannot be changed after exposure (unlike a password). Regulators are tightening. India's TRAI is signaling increased scrutiny of AI-generated calls, including disclosure requirements for non-human callers, and similar rules are emerging in the EU and several US states.

For every model and speech vendor in your stack, opt out of training data usage. Use zero-retention or no-log endpoints where they are offered. Get these commitments in writing in the DPA, not just in a blog post or FAQ.

What Is the Hybrid Approach and Why Do Most Teams End Up There?

The hybrid approach means using vendor infrastructure for the hard speech problems (ASR, TTS, and sometimes the LLM) while owning the orchestration, business logic, and data routing yourself. 44% of professional engineering teams building voice agents now take this path.

It works because the hardest parts of a voice assistant are not the business logic. They are accurate speech recognition across accents and noise conditions, natural-sounding speech synthesis, and reliable turn detection. These are problems where the best vendors have invested hundreds of millions of dollars in training data and infrastructure. Building competitive ASR or TTS in-house is rarely worth it unless speech is your core product.

What is worth building in-house: the conversation design, the integration with your backend systems, the rules about when to escalate to a human, the data routing that determines which sub-processors see which data, and the monitoring that tells you when the assistant is failing.

A practical hybrid architecture looks like this:

  1. Audio comes in from your telephony or client layer.
  2. You stream it to a hosted ASR service (Deepgram, a cloud provider, or a self-hosted Whisper instance depending on your data custody needs).
  3. The transcript hits your orchestration layer, which you own. This is where your prompt engineering, your tool calls, your business rules, and your escalation logic live.
  4. Your orchestration layer calls an LLM (cloud or local, your choice).
  5. The LLM's text response goes to a TTS service.
  6. Audio goes back to the user.

You control the routing at step 3. That is where you decide what data leaves your infrastructure and what stays. That control is the entire point of the hybrid approach.

How Do You Handle Latency in a Voice Pipeline?

Latency is the single biggest quality differentiator in voice assistants. A response that takes more than about one second feels sluggish. More than two seconds feels broken.

In a four-component pipeline (STT, LLM, TTS, plus network round-trips), latency compounds. If each stage takes 300 milliseconds, you are already at 1.2 seconds before network overhead. Every millisecond matters.

Practical techniques that actually help:

Stream everything. Do not wait for the user to finish speaking before starting transcription. Do not wait for the full LLM response before starting TTS. Stream audio into STT, stream tokens into TTS, stream audio back to the user. This turns sequential latency into parallel latency.

Use endpoint detection, not silence timers. Old systems waited for a fixed period of silence (say, 1.5 seconds) before deciding the user was done talking. Modern ASR models like Deepgram's Flux have integrated end-of-turn detection that uses linguistic cues, not just silence duration, to determine when the user has finished a thought. This shaves hundreds of milliseconds off every turn.

Choose your LLM size based on the task. Not every turn in a conversation needs a frontier-class model. For simple slot-filling ("What time works for you?"), a smaller, faster model is better. Reserve the big model for turns that require genuine reasoning.

Co-locate your services. If your ASR, LLM, and TTS are in three different cloud regions, you are paying for three cross-region round-trips per conversational turn. Put them in the same region, or ideally in the same data center.

What Mistakes Do Teams Make on Their First Voice Assistant?

The most common failure is optimizing for the demo instead of the edge case. A voice assistant that handles the happy path beautifully but falls apart when the user mumbles, interrupts, speaks in a noisy environment, or says something unexpected is not ready for production.

Second most common: underestimating the conversation design work. The LLM can generate fluent text. That does not mean it will generate the right text for a spoken interaction. Written English and spoken English are different. Sentences that read well on screen sound robotic when spoken aloud. Responses that are helpful in a chat interface are too long for a voice call. You need someone thinking about conversation flow, turn length, confirmation patterns, and error recovery. This is design work, not engineering work.

Third: not building an escalation path. Every voice assistant will fail on some percentage of calls. If there is no clean handoff to a human agent, those failures become customer losses. Build the escalation path on day one, not after your first angry review.

Fourth: ignoring the monitoring problem. You need to know, in near-real-time, when the assistant is confused, when it is hallucinating, when the caller is frustrated, and when the ASR is producing garbage transcripts. Logging the audio (with appropriate consent and retention policies) and the full transcript of every conversation is the minimum. You cannot improve what you cannot observe.

What Does the Market Look Like Right Now?

The voice AI agent market is projected to reach $47.5 billion by 2034 at a 34.8% compound annual growth rate. That is large enough that the tooling ecosystem is maturing rapidly, which is good for you regardless of whether you build or buy.

87.5% of builders surveyed in the 2026 Voice Agent Report are actively building voice agents, not just researching. This means the tools, documentation, and community knowledge are ahead of where they were even a year ago.

The practical implication: if you are starting today, you are not an early adopter fighting with immature tooling. You are entering a market with established patterns, known failure modes, and enough case studies to learn from others' mistakes. The build-vs-buy decision is less risky than it was in 2024 because both paths are better documented.

A Decision Framework That Fits on One Page

Answer these five questions. They will point you to the right path.

  1. Is the voice experience your core product, or a feature of your core product? If it is the core product, build. If it is a feature, buy or blend.
  2. Do you have a regulatory or contractual requirement that voice audio cannot leave your infrastructure? If yes, build with local components or blend with self-hosted ASR/TTS.
  3. Do you have four to nine months and $250K+ to invest before going live? If no, buy or blend.
  4. Do you need to handle more than 10,000 conversations per month? If yes, do the per-minute cost math carefully. At high volume, building can be cheaper over two years. At low volume, buying almost always wins.
  5. Can you name every sub-processor that will touch your users' voice data? If you cannot answer this question for the "buy" option you are evaluating, that is your answer. Fix the data custody problem first.

The right answer for most teams in 2026 is some version of the hybrid path. Use the best available vendor components for speech processing. Own the orchestration and logic layer. Maintain explicit control over where audio data flows and who retains it. Ship in weeks, not months. Iterate from there.

Start a free 7-day trial, no card required.

Frequently Asked Questions

What are the four core components of an AI voice assistant?

A voice assistant pipeline consists of speech-to-text (STT/ASR) for converting audio to text, a language model (LLM) for reasoning and generating a response, text-to-speech (TTS) for converting the response back to audio, and an orchestration layer that manages turn-taking, interruptions, and silence detection. Telephony deployments also need a SIP trunking or WebRTC gateway.

Should I build a custom voice assistant or buy a SaaS platform?

Build if you need deep control over latency and data handling, have a differentiated voice experience core to your product, and have the engineering team to maintain it, but expect $250K to $2M and four to nine months in year one. Buy if you need to automate a well-understood workflow and go live quickly, since SaaS platforms can deploy in five to fourteen days for $5K to $100K; a hybrid 'blend' approach using vendor speech processing with your own logic layer is now the most common path.

How much does it actually cost to run a voice AI agent per minute?

Real-world costs often run $0.15 to $0.33 per minute once speech recognition, TTS, LLM inference, telephony, and platform fees are stacked together, which is 2 to 4 times the advertised headline rate. Even so, this is still far cheaper than the average $7.16 cost of a human-handled inbound call.

What should I look for when choosing a voice AI platform?

Evaluate platforms on measured end-to-end latency, per-minute cost at your expected volume, transparency about which sub-processors handle ASR, LLM, and TTS, data retention policies for each sub-processor, and whether components can be swapped later without re-architecting. The right choice also depends on your latency needs, data custody requirements, and whether you need telephony versus an embedded interface.

Is it possible to run a voice assistant entirely locally without the cloud?

Yes, fully local open-source voice stacks are viable in 2026, reaching 1 to 2 seconds of end-to-end latency on consumer hardware, making them competitive for privacy-first use cases. Options include Whisper for STT, Ollama for local LLMs, and newer TTS models like Kokoro-82M or Chatterbox, though cloud options still generally offer better raw quality.

Sources & References

Michael C.

Michael C.

Founder & Principal Engineer, Selina Labs

Michael builds Selina, a privacy-first AI that remembers you across conversations. He ships security-sensitive AI in production — real attacks, real fixes, measured in minutes and dollars — and writes about privacy, security, and LLMs from that seat. Top Rated Plus and expert-verified on Upwork.

Learn more about Selina.ai