Altaf Rehman, Lead Software Engineer — Real-time Voice AI
Lead Software Engineer building production-grade voice AI platforms that replace vendors, with low latency, high reliability, and minimal drama.
- Currently
- Lead Software Engineer, BrainCX AI
- Focus
- Production-grade voice AI platforms, LLM orchestration, MCP & automations
- Based in
- Islamabad, Pakistan
- Writing
- 4 papers on Zenodo
Ibuildthewholestackthatletssoftwareholdarealconversation:thephoneline,streamingspeech,themodel,andtheplatformclientsrunitallon.Ihavetakenonefromablankrepotoeveryclientinproduction.Icareabouttheboringpartsthatmakeitworkatscale:turn-taking,concurrency,retries,observability,andevaluation.

Lower infrastructure cost after replacing a commercial voice AI vendor
Uptime SLA on the platform every client runs on
Typical voice-to-voice latency (300–500ms)
Final Year Project: Real-Time Multi-Agent Conversational Voice Platform
Dean's List of Honors · GPA 3.73 / 4.0
Islamabad · 2022 — 2025
Every reply is a relay race between four systems. The trick is starting each leg before the last one finishes. Hover a stage to focus it.
Systems that arein production,not in a demo.
The platform, the protocols and the agents I've designed and shipped at BrainCX AI.
In-house Voice AI Platform
The self-hosted platform that replaced a commercial voice AI vendor. Every client moved across, and every client voice agent now runs on it in production: telephony, web calls, session management, turn-taking and LLM orchestration, end to end.
Claude Connector & MCP Server
Run the whole voice AI platform from Claude. Agents, prompts, knowledge bases, custom functions, test runs and call review, exposed as permission-aware tools.
// claude → braincx mcp { "tool": "create_agent", "args": { "name": "scheduling-es", "language": "es" } }
Hybrid-search RAG
In-house knowledge base with keyword + vector hybrid retrieval, website ingestion and retrieval-optimized document restructuring.
Hands-free Form Agent
Fill complex web forms by just talking. Natural-language intent mapping turns speech into validated field values.
LangGraph Workflows
Stateful agent graphs for qualification, transfer and post-call extraction, with evaluation loops before every prompt promotion.
CRM Integrations
Voice agents connected to the CRMs clients already run on, so every conversation works with real customer records.
Video Agents
Voice agents with a face. LiveAvatar runs on the in-house platform, with screen sharing and co-browsing so the agent can walk a customer through a page live.
BrainCX AI
BrainCX AI designs, builds and runs customer conversations for High Consequence verticals. I lead engineering for its voice AI product line.
- 01Designed, built and deployed a complete self-hosted voice AI platform on LiveKit (WebRTC and SIP): telephony, multi-tenant agent management, call history and analytics, post-call data extraction, prompt versioning and testing, knowledge bases, and chat and web widgets. Runs at 300–500ms voice-to-voice with a 99.9% uptime SLA.
- 02Replaced a commercial voice AI vendor with the in-house platform and migrated every client across, cutting infrastructure cost by 60% while improving reliability.
- 03Built the company MCP server and Claude connector, so the whole platform runs from a conversation: creating agents, writing and testing prompts, building knowledge bases, wiring custom functions and reviewing calls. Also shipped an OpenAI marketplace connector.
- 04Integrated LiveAvatar to launch video agents, now live with clients, with screen sharing and co-browsing so an agent sees what the customer sees and guides them through it.
- 05Built LangGraph agent workflows, a hybrid-search RAG knowledge base, and CRM integrations with HubSpot and GoHighLevel to ground agents in real client data.
- 06Shipped a real-time AI phone interpreter (Spanish & Portuguese) at ~250ms. Own STT/TTS integrations, model evaluation and engineering standards for the voice product line.
Devoura
Full project lifecycle ownership, from requirements to deployment.
- 01Built scalable full-stack applications with React, Next.js, Node.js and Express, exposing REST/GraphQL APIs that later carried AI feature extensions.
- 02Improved application performance by 40% through code-splitting and caching, and cut cloud costs by 35% through resource optimization.
- 03Set up AWS, Docker and GitHub Actions CI/CD pipelines with automated testing (Jest, Cypress).
Freelance / Contract
Backend systems for web apps and early AI-powered features.
- 01Designed and maintained Node.js / Express services on MongoDB and PostgreSQL with secure REST and GraphQL APIs.
- 02Integrated OpenAI, Dialogflow and Google Cloud AI into client products.
Retrieval in the Voice Loop: Tool-Triggered RAG, Topic Preload and Caching Under a Latency Budget
How an 8.2s retrieval path became 0.2–0.5s for warm queries: retrieve only on tool call, return raw passages, cache, and preload common topics. Plus an evaluation protocol across 1–20 concurrent sessions.
Read the article on MediumHow Long Should a Voice Agent Wait? Silence Thresholds and Response Latency in Production Voice Agents
End-of-utterance waiting was the largest single share of response time in a production call. Testable hypotheses on threshold, language and channel, and a measurement protocol to settle them.
Read the article on MediumArchitecture Patterns for Low-Latency Real-Time Voice Agents
Streaming pipelines, turn-taking strategies and latency budgets for voice agents that feel human on a phone line.
Read the article on MediumConcurrency and Reliability Challenges in Multi-Session Conversational AI Systems
Isolation, back-pressure and failure modes when one platform carries many simultaneous live conversations.
Read the article on MediumVoice & Conversational AI
08Agents & Tooling
07LLM & Retrieval
06Backend
07Frontend
04Data & Infra
07Let's buildwhat talks back.
Islamabad, Pakistan · PKT · UTC+5



