Skip to main content

Featured

Free Text-to-Speech for YouTube Videos: My Kokoro TTS Pipeline

Every tutorial and Short on my YouTube channel Omilabs is narrated by a synthetic voice. I don't record my own voiceover for these videos. The narration comes from a script that turns each line of text into audio, and that script runs on Kokoro, a small open-weight text-to-speech model. In this post I explain how I set it up, the problems I hit, and the checks I now run so the voice sounds clean and stays consistent across more than a hundred videos. Why I Picked an Open TTS Model When you make one video, a paid voice tool is easy. When you make a full series of long episodes plus many Shorts, and you rebuild the audio every time a script line changes, a few things start to matter more: Re-runs cost nothing. I edit scripts often. With a local model I can regenerate a whole episode as many times as I want. It runs anywhere. The model is small enough to run on a normal CPU, including a free GitHub Actions runner, which is where my videos are rendered now. The output is rep...

Connecting AI Voice Agents to VICIdial and Asterisk Dialers

Many Indian businesses already run large calling operations on dialer software built on Asterisk, such as VICIdial. When they decide to try AI voice agents, the first question is usually: do we have to throw away our existing dialer? In most cases, no. An AI agent can be connected to an existing telephony setup so that some calls are handled by AI and others by human agents, using the same lists, reports and phone lines.

This article explains, at a conceptual level, how that connection works and what to plan for. It is not a step-by-step configuration guide, because the exact settings depend on your dialer version, your telecom provider and your AI platform.

The basic idea: SIP

Modern telephony systems talk to each other using SIP, the Session Initiation Protocol. A SIP trunk is essentially a virtual phone line between two systems. Your dialer already uses SIP trunks to reach your telecom carrier. To bring in an AI agent, you add another SIP connection: this time between your dialer and the AI voice platform.

Most AI voice platforms that support telephony can either:

  • receive calls over SIP, so your dialer can send a call to the AI as if it were sending it to another extension or carrier, or
  • place calls themselves through their own telephony partners, independent of your dialer.

For businesses that want to keep their existing numbers, lists and reporting, the first option is usually the interesting one. Check your AI platform's documentation for the exact SIP features it supports.

Three common patterns

Pattern 1: AI as the first answer, human as backup

Inbound calls reach the dialer as usual. Instead of going straight to a human queue, they are routed to the AI agent first. The AI handles simple requests completely and transfers anything complex back to a human queue in the dialer.

This is the most common starting point because it reduces load on human agents without removing them. The key requirement is a reliable transfer back from the AI to the dialer.

Pattern 2: AI for specific campaigns

Some outbound campaigns are simple and repetitive: payment reminders, appointment confirmations, feedback calls. These can be assigned to the AI agent while sales or complex service campaigns stay with people. The dialer still manages lists and calling rules; only the conversation itself is handled by AI.

Pattern 3: AI qualifies, humans close

The AI makes or answers the first call, asks a few qualifying questions and, if the lead is interested, transfers the live call to a human agent with the answers already captured. The human starts the conversation already knowing the context.

What to plan for

Call transfer

Transfer is where most integrations struggle. Decide early:

  • How the AI signals that a call should go to a human, and to which queue.
  • Whether the transfer is "cold" (the call is simply handed over) or "warm" (the human gets a summary first).
  • How the context the AI collected reaches the human agent's screen, for example by writing it to the CRM before the transfer.
  • What happens if no human is available: a call back, a message, or a polite end to the call.

Audio quality and codecs

Speech recognition is very sensitive to audio quality. Make sure both systems agree on a common audio codec and that the network path between them is stable. Calls that sound fine to a person can still be hard for an AI to understand if packets are being dropped or the audio is heavily compressed twice.

Latency

Every additional hop between your dialer, the AI platform and the AI models adds delay to each turn of the conversation. Host components in regions close to each other where possible, and measure the end-to-end pause the caller hears, not just individual API timings.

Caller ID and compliance

Outbound calls must follow the telecom rules that apply to your business, including rules on caller ID, calling hours and consent. In India, that includes the TRAI regulations on commercial communication. Using AI does not change these obligations. Also consider how you tell callers that they are speaking with an automated assistant; being transparent builds trust.

Call statuses and reporting

Your dialer's reports depend on correct call statuses. When a call is handled partly or fully by AI, make sure the final status written back to the dialer is accurate: answered, completed, transferred, no answer, busy, voicemail. If the AI side and the dialer side use different status names, map them explicitly. Otherwise, a successful AI call might appear as "disconnected" in your reports, and managers will draw the wrong conclusions.

Recordings and transcripts

Decide where recordings and transcripts will live. Some teams keep the dialer's recording as the single source of truth; others store the AI platform's transcript alongside it. Either way, link both to the same customer record and call ID so supervisors can review a call end to end.

A sensible rollout

  1. Start with one simple use case, such as reminder calls or answering a frequently asked question.
  2. Route a small share of calls to the AI, for example a fixed percentage or one campaign.
  3. Listen to real calls daily during the first weeks and fix problems quickly.
  4. Compare outcomes against the same calls handled by humans: completion rate, transfers, complaints, and time saved.
  5. Expand only when the numbers are stable.

What not to do

  • Do not route all calls to AI on day one. A small problem multiplied by thousands of calls becomes a big one.
  • Do not remove the human path. Callers who cannot reach a person will abandon the call or complain.
  • Do not skip the reporting check. Wrong data from the first week can mislead decisions for months.

Conclusion

Connecting AI voice agents to an existing dialer is less about replacing systems and more about routing: deciding which calls go to AI, how they come back to people, and how every outcome is recorded correctly. Businesses that treat it this way can add AI step by step, keep the tools their teams already know, and measure the real impact before scaling up.

Comments

Adsterra Have a blog? Monetize it with Adsterra (referral link)