Over 3 billion people globally rely on basic 2G/3G button phones or lack consistent high-speed mobile data. When modern AI tools require browser interfaces, React single-page apps, and heavy client-side JavaScript bundles, they inadvertently exclude a massive portion of the world's population.
When I started engineering Omniq, the goal was clear: connect standard cellular phone calls directly to conversational AI, allowing anyone to dial a local phone number on a $15 feature phone and interact naturally with an intelligent assistant.
The Architecture of a Cellular Voice Pipeline#
Unlike web applications where WebRTC or WebSocket audio can run on high-bandwidth Opus codecs at 48kHz, cellular voice (PSTN) runs on compressed codecs like AMR-NB (Adaptive Multi-Rate Narrowband) sampled at just 8,000 Hz in single-channel mono.
The end-to-end flow requires bridging legacy telecom protocols with modern streaming AI infrastructure:
Sub-Second Turn-Taking and Latency Budgeting#
In conversational audio, human turn-taking expectations are unforgiving. A delay of over 1.5 seconds feels like a broken connection or an unresponsive IVR robot. To achieve conversational responsiveness on narrowband phone lines, we had to dismantle the traditional "record audio $\rightarrow$ upload file $\rightarrow$ transcribe $\rightarrow$ prompt LLM $\rightarrow$ generate MP3 $\rightarrow$ playback" chain.
Instead, we stream audio chunks concurrently:
Structured Extraction Over Phone Calls#
When feature-phone users access services—such as confirming agricultural grain prices, checking clinic availability, or reporting local infrastructure outages—freeform rambling responses from an AI agent are inadequate. The system must capture structured, validated parameters (names, quantities, dates, coordinates) while keeping the caller informed.
We applied strict schema validation with automated repair loops:
- The conversational agent prompts the caller for one clear parameter at a time.
- Extracted entities are parsed into typed models (using Pydantic in Python).
- If an extraction fails schema constraints (e.g. an invalid date or unrecognized crop name), the system asks a targeted clarifying question rather than restarting the conversation.
- Every extracted field is tagged with its exact audio timestamp for human verification and auditability.
Three Lessons Learned in Production#
- Acoustic Background Noise: Rural feature-phone calls often originate from windy roads, crowded markets, or noisy diesel generators. Standard VAD models tuned on quiet office recordings fail completely. Pre-filtering the 8kHz stream with an adaptive spectral noise gate reduced false turn-triggers by over 60%.
- Turn Interruption (Barge-In): Callers often speak over the synthesized voice when they already know the answer. The pipeline must listen for caller audio while streaming out synthesized speech and immediately cancel the playback stream when user speech is detected.
- Patience with Dialects and Pacing: Conversational tempo varies dramatically across regions and demographics. Hardcoded 500ms silence timeouts cut callers off mid-sentence. We implemented dynamic silence thresholds that adapt based on the caller's established speaking rate.
Democratizing AI means building for the devices people already hold in their hands, not just the latest smartphones.