A production-ready voice agent engineering suite orchestrating real-time streaming audio pipelines with Silero VAD, Deepgram Nova-2, Cartesia neural speech, and Gemini Live over Twilio, Telnyx, and WebSockets. Achieves natural, conversational turn-taking with sub-500ms response latency and instant interruption handling.

Connecting traditional request-response APIs (Speech-to-Text file upload → LLM completion → Text-to-Speech audio generation) introduces 2,000–3,500ms of lag. Callers assume the bot froze and start talking over it.
Without voice activity detection (VAD) coupled to an interruptible audio buffer, bots stubbornly speak their full generated script even after the human says "Wait, stop, that's not what I asked."
Carrier PSTN and SIP lines operate on narrow-band 8,000Hz µ-law or PCM audio. Modern AI neural voice services output 24,000Hz or 48,000Hz studio audio. Naive resampling creates distorted clipping or network buffer overruns.
Commercial voice agent platforms charge $0.15–$0.30/minute markup on raw carrier calls while locking customers into their proprietary telephony routing without audit logs or raw audio access.
I built a multi-carrier voice bot runtime leveraging Pipecat, FastAPI WebSockets, and specialized neural audio models. It enables organizations to connect inbound and outbound telephone numbers directly to low-latency conversational AI with full state control, dual-channel recording, and instant interruption.
Streams audio frames continuously over WebSockets. Speech-to-text, LLM tokens, and neural TTS audio chunks are generated simultaneously in parallel.
Native adapters for Twilio Media Streams, Telnyx Call Control, Plivo, Exotel, and WebSockets. Switch carriers with zero business logic changes.
Silero Voice Activity Detection monitors speaker audio. When speech is detected, the audio buffer is flushed within 30 milliseconds.
Twilio/Telnyx streams 8kHz µ-law audio chunks over WebSocket to FastAPI server.
Processes audio frames locally to detect speech boundaries; halts active playback if user speaks.
Streams live PCM to Nova-2, returning partial and finalized word transcripts with timestamps.
Maintains conversation context, invokes caller info tools, and streams response tokens.
Synthesizes audio bytes from streaming tokens, downsamples to 8kHz, and dispatches to phone.
# Continuous pipeline orchestrating input, transcription, context, LLM, TTS and buffer
pipeline = Pipeline([
transport.input(), # Websocket audio frame from Twilio
stt, # DeepgramSTTService(Nova-2 streaming)
user_aggregator, # SileroVADAnalyzer barge-in detection
llm, # GoogleLLMService / OpenAI streaming
tts, # CartesiaTTSService(Sonic neural voice)
transport.output(), # WebSocket audio chunks to phone
audiobuffer, # Asynchronous dual-track WAV recording
assistant_aggregator,
])

Real-time conversational voice interaction showing instantaneous speech-to-text transcription, streaming token inference, and neural text-to-speech output with sub-500ms conversational turn-around.

Inbound and outbound telephone call state manager displaying active Twilio SIP trunking, caller ID metadata lookup, dynamic prompt injection, and dual-channel WAV recording.

Detailed architectural topology illustrating audio frame flow: Carrier Ingestion -> FastAPI WebSocket -> Silero VAD -> Deepgram Nova-2 -> LLM Context Aggregator -> Cartesia TTS -> PCM Audio Buffer.

Comprehensive voice agent deployment suite supporting automated inbound customer qualification, automated IVR tree navigation, push-to-talk, and conference translation.

Telemetry monitor tracking jitter buffer latency, packet loss concealment, sample rate resampling (8kHz telephony to 24kHz HD neural TTS), and S3 multipart upload states.
This proves: The codebase implements true low-latency audio streaming rather than batch HTTP file uploads. Audio frames are converted between 8kHz PCM (telephony standard) and 24kHz neural TTS on the fly with zero dropped packets.
Why it matters: Delivers conversational turn latency under 500 milliseconds, meeting caller expectations for genuine real-time human interaction.
This proves: Local Silero VAD actively scores the microphone input. The instant speech is detected, the worker queues cancellation frames to flush the outbound audio buffer, cutting off bot speech within 30ms.
Why it matters: Eliminates the awkward, robotic experience where bots lecture callers and refuse to yield when interrupted.
This proves: Dedicated implementations for Twilio, Telnyx, Plivo, and Exotel allow businesses to deploy on their existing carrier accounts without vendor lock-in.
Why it matters: Reduces telephony operational costs by 60–80% compared to proprietary voice bot SaaS platforms.
This proves: Asynchronous audio buffer records caller and bot audio tracks into separate channels and uploads WAV files directly to S3 via multipart chunks.
Why it matters: Guarantees pristine compliance, QA review, and automated fine-tuning datasets without bogging down the real-time runtime.
Inbound and outbound telephone bot integrating Twilio Media Streams, caller lookup REST API, and 8kHz PCM audio serialization.
Low-cost enterprise telephony connector with real-time call control, conference transfer, and automated caller ID authentication.
Global and APAC-focused PSTN gateway integration for domestic Indian and international high-volume call centers.
Autonomous call tree navigator using DTMF tone generation and spoken menu parsing to traverse complex corporate phone trees.
Voice activity detection evaluating user speech onset. Flushes TTS output buffer immediately when user speaks (natural barge-in).
Sub-200ms streaming speech-to-text with domain-specific keyword boosting, punctuation prediction, and multi-accent support.
Ultra-low latency neural speech synthesis streaming PCM audio chunks with expressive emotion and natural pacing.
Dual-channel stereo audio recorder buffering speaker and caller tracks, streaming directly to AWS S3 upon call termination.
Browser-based direct peer connection using SmallWebRTC and Daily.co for crystal-clear browser voice interaction.
scripts/smoke_test_demo.py runs automated demo startup, timeout, and clean teardown validation.audio-recording-s3-multipart-upload pipeline.Answers incoming calls instantaneously 24/7/365, qualifying prospects, answering FAQs, and booking meetings directly on calendars.
By bypassing middle-tier proprietary voice bot SaaS providers, companies pay only raw wholesale carrier rates (e.g. $0.004/min on Telnyx).
Automatic dual-channel stereo recording stores caller and bot audio on independent channels for QA audits and automated transcription.
Acoustic Background Noise: In high-noise environments (e.g. driving with open windows or construction), VAD threshold sensitivity requires tuning to avoid premature barge-in triggers.
PSTN Jitter & Packet Loss: Cellular network degradation can introduce packet jitter. The system uses jitter buffering, but poor cellular signal remains an external physical constraint.
API Key Prerequisite: Requires API keys for telephony carriers (Twilio, Telnyx) and neural speech providers (Deepgram, Cartesia, OpenAI/Gemini).
Vocalis AI anchors the critical CONVERT stage of the lifecycle. When inbound marketing traffic from SEO or ad campaigns requests a phone consultation or dials an inbound number, Vocalis AI picks up instantly, qualifies the buyer, and synchronizes the session outcome with upstream attribution models.
This project highlights my systems engineering capability in high-concurrency, low-latency asynchronous Python development. It demonstrates practical mastery of real-time audio protocols (WebSockets, WebRTC, SIP), pipeline orchestration, and voice AI model integration.
I'm open to Digital Growth, Technical SEO, SaaS, AI Automation, and Analytics opportunities.