altaf.rehman connecting
› negotiating ICE candidates_
0%
Altaf Rehman
Lead Software EngineerReal-time Voice AI

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
ScrollPKT · UTC+5
LiveKitWebRTCSIPLiveAvatarPythonFastAPILangGraphMCPClaudeRAGHybrid SearchHubSpotGoHighLevelSTT / TTSTypeScriptNext.jsPostgreSQLRedisDockerAWSn8nLiveKitWebRTCSIPLiveAvatarPythonFastAPILangGraphMCPClaudeRAGHybrid SearchHubSpotGoHighLevelSTT / TTSTypeScriptNext.jsPostgreSQLRedisDockerAWSn8n
01About

Ibuildthewholestackthatletssoftwareholdarealconversation:thephoneline,streamingspeech,themodel,andtheplatformclientsrunitallon.Ihavetakenonefromablankrepotoeveryclientinproduction.Icareabouttheboringpartsthatmakeitworkatscale:turn-taking,concurrency,retries,observability,andevaluation.

Portrait of Altaf Rehman standing in an empty auditorium
Altaf RehmanIslamabad
01
0%

Lower infrastructure cost after replacing a commercial voice AI vendor

02
0.0%

Uptime SLA on the platform every client runs on

03
0ms

Typical voice-to-voice latency (300–500ms)

Education
B.S. Software Engineering — FAST — National University of Computer and Emerging Sciences

Final Year Project: Real-Time Multi-Agent Conversational Voice Platform

Machine LearningNLPDistributed SystemsOperating SystemsDatabases
Honors
3.73

Dean's List of Honors · GPA 3.73 / 4.0

Islamabad · 2022 — 2025

02Anatomy of a voice turn

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.

Illustrative latency budget · one conversational turn≈ 0ms / 500ms
Transport 40msListen 90msThink 160msSpeak 80ms headroom
03Selected work

Systems that arein production,not in a demo.

The platform, the protocols and the agents I've designed and shipped at BrainCX AI.

BrainCX AI · Flagship

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.

0 sessions live300–500ms voice-to-voice
Every client migrated−60% cost99.9% uptime SLA300–500ms latency
LiveKitWebRTCSIPPythonFastAPISTT/TTS
Platform automation

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" }
}
MCPClaudeTool CallingOAuth
Knowledge grounding

Hybrid-search RAG

In-house knowledge base with keyword + vector hybrid retrieval, website ingestion and retrieval-optimized document restructuring.

RAGEmbeddingsVector DB
Beyond telephony

Hands-free Form Agent

Fill complex web forms by just talking. Natural-language intent mapping turns speech into validated field values.

Intent MappingStructured Outputs
Multi-agent

LangGraph Workflows

Stateful agent graphs for qualification, transfer and post-call extraction, with evaluation loops before every prompt promotion.

LangGraphEvals
Where the data lives

CRM Integrations

Voice agents connected to the CRMs clients already run on, so every conversation works with real customer records.

HubSpotGoHighLevel
CRMWebhooksAPIs
LiveAvatar

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.

Agent · live
Co-browsing
Live with clients
LiveAvatarWebRTCScreen ShareCo-browsing
04Experience

Aug 2025 — Present
Florida, USA · Remote

BrainCX AI

Lead Software EngineerSep 2026 — Present
AI EngineerAug 2025 — Sep 2026

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.
PythonFastAPILiveKitWebRTCSIPLiveAvatarLangGraphMCPRAGHubSpotGoHighLevelPostgreSQLRedis
Oct 2024 — Aug 2025
Islamabad · Remote

Devoura

MERN Full Stack DeveloperOct 2024 — Aug 2025

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).
ReactNext.jsNode.jsGraphQLMongoDBPostgreSQLAWSDocker
Aug 2023 — Oct 2024
Remote · Part-time

Freelance / Contract

Back End DeveloperAug 2023 — Oct 2024

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.
Node.jsExpressMongoDBPostgreSQLOpenAIDialogflow
05Writing

P01
Preprint · Nov 2026

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 Medium
Zenodo · 24173171↗
P02
Preprint · Nov 2026

How 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 Medium
Zenodo · 24172870↗
P03
Preprint · Oct 2026

Architecture 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 Medium
Zenodo · 23216507↗
P04
Preprint · Oct 2026

Concurrency 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 Medium
Zenodo · 23222718↗
06Side quests

Full archive →
07Toolkit

Voice & Conversational AI

08
LiveKitWebRTCSIP & TelephonyReal-time Voice AgentsVideo Agents (LiveAvatar)STT / TTSTurn-taking & VADLow-latency Systems

Agents & Tooling

07
LangGraphMCP ServersClaude ConnectorsTool CallingStructured OutputsPrompt EngineeringHubSpot / GoHighLevel

LLM & Retrieval

06
OpenAI / Claude APIsRAG PipelinesHybrid SearchEmbeddingsVector DBsModel Evaluation

Backend

07
PythonFastAPITypeScriptNode.jsExpressGraphQLSocket.io

Frontend

04
ReactNext.jsTailwind CSSFramer Motion

Data & Infra

07
PostgreSQLMongoDBRedisDockerAWSGitHub Actionsn8n
Open to senior / lead roles · Remote, Hybrid, On-site

Let's buildwhat talks back.

Islamabad, Pakistan · PKT · UTC+5