5 min read

How AI Voice Agents Work: The Full Technical Stack, Built for the UAE

How AI voice agents work: the STT, NLP, LLM, TTS and telephony stack, with UAE-specific failure points, TDRA rules and PDPL consent obligations.

Shadi Hossam
Shadi Hossam
Young man wearing a call center headset, focused on a conversation

Most guides answer "how AI voice agents work" at brochure level. This one doesn't. If you're a UAE business about to spend AED 50,000 or more on a voice agent, you need the full five-layer stack, where each layer breaks under Gulf conditions, and which UAE regulations decide what you can legally deploy.

Voice AI isn't one piece of software. It's a pipeline of five distinct systems, each with its own accuracy, latency and language limits. A Dubai deployment has to survive Arabic dialect fragmentation, TDRA telemarketing rules, and PDPL consent obligations most vendor demos never mention.

Key Takeaways

  • Five layers, five handoffs, one point of failure — STT, NLP, the LLM, TTS and telephony each hand off in real time. When a caller says the agent didn't understand them, any of the five layers could be the cause.
  • Arabic transcription is the UAE's hardest problem — Vendor word-error rates are benchmarked on clean telephony audio. Gulf Arabic dialects like Emirati and Khaleeji are underrepresented against MSA training data, and mid-sentence code-switching into English or Arabizi pushes real UAE call accuracy below that benchmark.
  • UAE recording and calling laws carry real fines — The PDPL (Federal Decree-Law No. 45 of 2021) governs recording consent, and Cabinet Resolutions 56 and 57 of 2024 require TDRA approval and locally registered numbers for outbound calls. Repeat breaches escalate from AED 50,000 to 75,000 to 150,000.
  • Latency is the sum of five delays — STT adds a few hundred milliseconds, LLM inference a second or more, TTS another few hundred, and network transit tens to hundreds more. Streaming cuts perceived delay, but Arabic pipelines run on fewer optimised inference endpoints than English.
  • Bad barge-in detection breaks the agent — Voice activity detection can mistake a cough for speech or miss a real interruption. In Arabic calls, high-frequency affirmations like aiwa, tab and tayeb get misread as barge-ins, cutting the agent off mid-explanation.

The Five Layers Every AI Voice Agent Runs On

Every voice agent runs on the same five layers. Speech-to-text (STT) converts audio into text. Natural language processing parses intent.

The large language model generates a response. Text-to-speech (TTS) turns that response back into audio. The telephony layer handles the carrier connection so the call rings.

Each layer hands off to the next in real time. STT transcribes in a few hundred milliseconds. NLP routes intent to the LLM.

The LLM produces text. TTS synthesises it. Telephony pushes packets to the caller's phone.

That's how AI voice agents work end to end: five layers, five handoffs, live.

Vendors who abstract the stack hide where failures happen. When a caller reports "the agent didn't understand me", the cause could be any of the five layers.

One bug, five possible root causes. For platforms that bundle these differently, see our comparison of Vapi, Retell, Bland and ElevenLabs.

Arabic Speech Recognition Accuracy: The UAE's Hardest Engineering Problem

Studio microphone beside a laptop showing an audio waveform
Photo: Seej Nguyen on Pexels

The single point where most UAE voice agents fail is transcription. Published word-error rates are measured on clean telephony audio, and UAE calls rarely qualify: expect a gap between the benchmark you were sold and the accuracy you get.

Arabic isn't one language for ASR purposes. Modern Standard Arabic is what most training data contains.

Gulf Arabic (Emirati, Khaleeji, Saudi) is under-represented. A model tuned on MSA or Egyptian Arabic will produce measurably higher error rates on a Dubai call.

Then code-switching. A UAE caller can start a sentence in Arabic, switch to English mid-clause, and finish in Arabizi (Latin characters with numerals). The agent must track the switch within a single utterance.

That's the baseline, not a premium feature. Our full model comparison lives at Arabic speech recognition accuracy.

Voice AI Latency: Where the Milliseconds Stack Up

Latency in a voice call isn't a single number. It's the sum of every layer's processing time plus network transit. STT takes a few hundred milliseconds.

LLM inference can take a second or more. TTS synthesis adds another few hundred. Network transit adds tens to hundreds more.

Past a certain threshold, callers talk over the agent or hang up.

Streaming architectures fix this. Chunked STT feeds partial text to the LLM as the caller speaks. Chunked TTS starts talking before the LLM finishes.

Perceived delay drops significantly. Arabic pipelines often run on fewer optimised inference endpoints than English, adding real latency in UAE deployments. See voice AI latency for the specific thresholds.

Breaking the pipeline into its stages shows exactly where each layer adds delay before the caller hears a reply.

Layer Function Latency Added
Speech-to-text (STT) Converts audio into text A few hundred milliseconds
LLM Generates the response A second or more
Text-to-speech (TTS) Turns response back into audio Another few hundred milliseconds
Telephony / network transit Carries the packets to the caller's phone Tens to hundreds of milliseconds more

Natural AI Voice Quality: Why the Voice Is the First Thing Callers Judge

Callers judge your agent before it finishes the opening sentence. Modern TTS voices carry appropriate pacing and emotional tone across a full call; the robotic monotone of early IVR isn't the benchmark anymore. The gap is now accent, dialect match and register.

Gulf-Arabic TTS voices exist but the pool is smaller than English. An Egyptian voice on a Dubai call sounds foreign.

A Levantine voice sounds worse. Register matters too: a formal voice on a delivery call sounds stiff, an informal voice on a legal consultation sounds unprofessional.

Voice selection is a business decision, not a technical afterthought. Formal versus informal, gender, accent, language variant, they all affect whether the caller stays on the line. Our comparison of Arabic and English options lives at natural AI voice quality.

Voice Agent Interruption Handling: The Engineering Problem Most Guides Skip

Real conversations aren't strict turn-taking. Callers interrupt, agree mid-sentence, cough, mumble, get distracted. How the agent handles this is its own engineering layer.

Voice activity detection (VAD) decides whether a sound is the caller speaking or background noise. False positives (the agent hears a cough and stops mid-sentence) and false negatives (the agent talks over a real interruption) both hurt call quality.

Half-duplex agents wait for silence before responding. Full-duplex agents listen and speak simultaneously, which feels more natural but needs tighter engineering.

In Arabic calls, short affirmations like "aiwa", "tab" and "tayeb" are high-frequency. An agent that reads every "aiwa" as a barge-in and stops mid-explanation frustrates callers fast. See voice agent interruption handling for implementation patterns.

UAE Telephony AI Integration: Local Numbers, SIP Trunks and the Regulatory Layer

Hand holding a telephone receiver in a server room
Photo: panumas nikhomkhai on Pexels

TDRA regulates UAE telecoms and any voice AI deployment that touches the PSTN. Outbound AI calling needs local registered numbers and TDRA prior approval under Cabinet Resolutions 56 and 57 of 2024, effective 27 August 2024. Calling from an unregistered or foreign number isn't a workaround; it's a breach carrying AED 50,000 for a first offence.

Practically, that means a SIP trunk from a UAE-licensed carrier connecting your voice AI platform to the phone network. WhatsApp Business API is a parallel channel with its own integration path, and it's often the primary customer messaging channel here, so the two usually run together.

The permitted outbound calling window is 09:00 to 18:00. Your orchestration layer needs timezone logic built in, not bolted on. See UAE telephony AI integration for full technical detail, and outbound AI calling in the UAE for the compliance picture.

Call Recording Consent UAE: What the Law Requires Before You Go Live

Voice recordings count as personal data under Federal Decree-Law No. 45 of 2021 (the PDPL), which took force on 2 January 2022.

The UAE Data Office, established under Federal Decree-Law No. 44 of 2021, is the federal regulator.

DIFC and ADGM each run their own data protection regimes layered on top of the federal law. If your entity is in a free zone, confirm which regime applies before you deploy; the answer changes disclosure wording and retention rules.

Fines for Do Not Call Registry breaches under Cabinet Resolutions 56 and 57 of 2024 run AED 50,000 for a first offence, AED 75,000 for a second, and AED 150,000 for a third. Clear consent and recording disclosure at call start is expected by callers and required in practice. Our full compliance checklist lives at call recording consent UAE.

If you want your specific PDPL and TDRA obligations mapped against your deployment, book a free 30-minute call.

Build, Buy or Integrate: Matching the Stack to Your UAE Business

Three options. Off-the-shelf platforms abstract the whole stack behind a dashboard, fast to launch and cheap to try, but limited on Arabic dialect tuning and local carrier flexibility.

Building yourself gives full control and full responsibility. Layering AI onto existing telephony sits between: keep your numbers, add intelligence where it earns its keep.

The right answer depends on call volume, language mix and how tightly the agent needs to fit your workflows. A five-seat contact centre handling 50 Arabic-first calls a day is a different problem from a broker wanting missed calls answered after hours. Whether the agent logs outcomes into your existing system decides whether it adds work or removes it; see voice agent CRM integration.

Cost per minute varies significantly by architecture, model choice, TTS voice and carrier. Get the numbers in our cost-per-minute breakdown, and run our voice agent testing checklist before any deployment goes live. For the receptionist use case, see the AI receptionist; for the full service overview, our AI voice agents guide for Gulf businesses.

Before you commit budget, book a free 30-minute consultation to map your stack against call volume, Arabic dialect needs and UAE compliance. If building doesn't make business sense, we'll say so.

FAQ

Can an AI voice agent handle Arabic and English in the same call?

Yes, if the STT and TTS layers are chosen for it. The agent must track language switches within a single utterance because UAE callers mix Arabic, English and Arabizi in one sentence routinely. Most general-purpose platforms handle switching per turn only, which is easier.

How much latency is acceptable before a call sounds unnatural?

Round-trip latency (the total pause between the caller finishing and the agent replying) is what callers perceive. Streaming STT and chunked TTS cut this down significantly. Past a certain threshold, callers start talking over the agent, which cascades into interruption problems.

What UAE laws apply to call recording by an AI voice agent?

Federal Decree-Law No. 45 of 2021 (PDPL), in force 2 January 2022, governs personal data including voice recordings, with the UAE Data Office as federal regulator. DIFC and ADGM operate layered regimes on top for entities in those free zones. Clear disclosure at call start is standard practice.

Does outbound AI calling in the UAE require TDRA approval?

Yes. Under Cabinet Resolutions 56 and 57 of 2024, effective 27 August 2024, outbound telemarketing requires TDRA prior approval, local registered numbers and DNCR compliance. Fines run AED 50,000, 75,000 and 150,000 for first, second and third offences. The permitted calling window is 09:00 to 18:00.

How do AI voice agents detect and respond to interruptions?

Voice activity detection (VAD) monitors the audio stream to decide when the caller is speaking. When VAD detects speech during the agent's turn, the agent stops immediately (full-duplex) or finishes the phrase and yields (half-duplex). Tuning VAD for Arabic affirmations like "aiwa" avoids the agent cutting itself off.

What's the practical difference between an AI voice agent and a traditional IVR?

An IVR follows a fixed decision tree ("press 1 for sales"). An AI voice agent understands natural speech and generates open-ended responses using an LLM. The AI agent can answer questions, book appointments and hand off to a human, in the caller's language of choice.

Found this useful? Share it with your team.

Ready to find your highest-ROI AI opportunity?

We map your workflows, identify quick wins, and build a custom AI roadmap in one free strategy call.

Book a Free Strategy Call →