Swastik Agnihotri
WorkSystems (19+)ArchitectureDomainsEngineeringExperience
Resume ↗Contact
Swastik Agnihotri

Digital Growth & Technical SEO Specialist. Building scalable SaaS architectures, automated search workflows, and data-driven intelligence.

Available for 2026 roles & technical advisory

Navigation

  • Overview
  • Case Studies
  • Technical Skills
  • Experience
  • Contact

Connect

GitHubLinkedInEmailDownload Resume PDF ↗

© 2026 Swastik Agnihotri. All rights reserved.

Built with Next.js & Tailwind•Continuous Reliability

ProjectsProject 08Vocalis AI (Voice Agent)
Flagship Case Study #08Telephony & Voice AI<500ms Turn LatencyLiveKit & Twilio SIP

Vocalis AI: Real-Time Voice AI Agent & Telephony Solutions Hub

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.

Turnaround Latency<500ms Conversational
Speech PipelineDeepgram + Cartesia
Carriers SupportedTwilio / Telnyx / Plivo
Interruption ModeSilero VAD Barge-In
Real-Time Voice Interaction & Live Conversational Waveform
Live Interaction & Streaming Audio WaveformClick to inspect verification proof
Expand Proof
The Engineering Challenge

Why Conversational Voice AI Fails in Real-World Telephony

The 2–3 Second Latency Wall

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.

Robotic Talking Over the User (No Barge-In)

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."

Telephony Protocol & Sampling Incompatibilities

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.

Carrier Lock-In & Astronomical SaaS Pricing

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.

The Architecture

Vocalis AI: Streaming Voice Pipeline & Telephony Connector Hub

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.

Sub-500ms Turnaround

Streams audio frames continuously over WebSockets. Speech-to-text, LLM tokens, and neural TTS audio chunks are generated simultaneously in parallel.

Multi-Carrier SIP

Native adapters for Twilio Media Streams, Telnyx Call Control, Plivo, Exotel, and WebSockets. Switch carriers with zero business logic changes.

Instant Barge-In

Silero Voice Activity Detection monitors speaker audio. When speech is detected, the audio buffer is flushed within 30 milliseconds.

Audio Pipeline

How It Works: Continuous Audio Frame Stream Architecture

1
Carrier Ingest

Twilio/Telnyx streams 8kHz µ-law audio chunks over WebSocket to FastAPI server.

2
Silero VAD

Processes audio frames locally to detect speech boundaries; halts active playback if user speaks.

3
Deepgram STT

Streams live PCM to Nova-2, returning partial and finalized word transcripts with timestamps.

4
LLM Aggregator

Maintains conversation context, invokes caller info tools, and streams response tokens.

5
Cartesia TTS

Synthesizes audio bytes from streaming tokens, downsamples to 8kHz, and dispatches to phone.

Pipecat Pipeline Assembly (twilio-chatbot/inbound/bot.py)
Python 3.11 Async Worker

# 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,

])

Evidence Gallery

Visual Evidence & Telephony Interaction Proof

5 High-Res Artifacts
Real-Time Voice Interaction & Live Conversational Waveform
Live Voice Stream

Real-Time Voice Interaction & Live Conversational Waveform

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.

Click for proof
Enterprise Telephony Bot State Machine Console
Telephony Runtime

Enterprise Telephony Bot State Machine Console

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

Click for proof
End-to-End Voice AI Architectural Topology
System Architecture

End-to-End Voice AI Architectural Topology

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

Click for proof
Full-Stack Business Calling Hub Overview
Product Hub

Full-Stack Business Calling Hub Overview

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

Click for proof
Real-Time Voice Protocol Telemetry & Audio Buffer
Low-Latency Protocol

Real-Time Voice Protocol Telemetry & Audio Buffer

Telemetry monitor tracking jitter buffer latency, packet loss concealment, sample rate resampling (8kHz telephony to 24kHz HD neural TTS), and S3 multipart upload states.

Click for proof
Verification & Rigor

What These Engineering Artifacts Conclusively Prove

Real-Time Streaming Frame Transport

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.

Natural Barge-In Interruption Handling

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.

Multi-Carrier Telephony Interoperability

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.

Dual-Channel S3 Multipart Compliance Recording

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.

Connectors & Modules

Explore Telephony Connectors & Speech Services

Showing 9 verified modules
Twilio SIP & PSTN Bot<420ms

Inbound and outbound telephone bot integrating Twilio Media Streams, caller lookup REST API, and 8kHz PCM audio serialization.

FastAPI WebSockets / Twilio SIP
Telnyx Voice Connector<440ms

Low-cost enterprise telephony connector with real-time call control, conference transfer, and automated caller ID authentication.

Telnyx Call Control / Webhooks
Plivo & Exotel Connectors<460ms

Global and APAC-focused PSTN gateway integration for domestic Indian and international high-volume call centers.

Plivo XML / Exotel Streams
Automated IVR Navigation<380ms

Autonomous call tree navigator using DTMF tone generation and spoken menu parsing to traverse complex corporate phone trees.

DTMF Tone Injector / LLM Parser
Silero VAD & Natural Interruption<30ms VAD Trigger

Voice activity detection evaluating user speech onset. Flushes TTS output buffer immediately when user speaks (natural barge-in).

Silero VAD / Frame Aggregator
Deepgram Nova-2 Streaming STT<180ms STT

Sub-200ms streaming speech-to-text with domain-specific keyword boosting, punctuation prediction, and multi-accent support.

Deepgram WebSocket Streaming
Cartesia Neural Sonic TTS<120ms TTS Chunk

Ultra-low latency neural speech synthesis streaming PCM audio chunks with expressive emotion and natural pacing.

Cartesia Sonic API / 24kHz HD
S3 Multipart Call RecordingZero Pipeline Delay

Dual-channel stereo audio recorder buffering speaker and caller tracks, streaming directly to AWS S3 upon call termination.

Aiofiles / S3 Multipart Stream
Peer-to-Peer WebRTC Audio Bot<280ms Turnaround

Browser-based direct peer connection using SmallWebRTC and Daily.co for crystal-clear browser voice interaction.

WebRTC PeerConnection / Daily
Under The Hood

Technical Stack & Production Audio Pipeline Engineering

Speech Processing & VAD
  • Silero VAD: Neural voice activity detection processing 512-sample audio chunks locally to separate speech from background noise.
  • Deepgram Nova-2: Sub-200ms streaming STT over WebSockets with automatic punctuation and smart formatting.
  • Cartesia Sonic: Ultra-low latency neural TTS streaming raw PCM audio chunks back to the client with sub-120ms first-chunk generation.
Telephony Transport & Networking
  • FastAPI & Uvicorn: Asynchronous WebSocket gateway managing bidirectional bi-directional streaming audio channels.
  • Twilio Frame Serializer: Transcodes between Twilio µ-law base64 audio frames and raw linear PCM frames.
  • WebRTC & MoQ: Support for browser WebRTC clients and cutting-edge Media over QUIC (MoQ) announcement protocols.
Epistemic Rigor

Verified Repository Evidence (Zero Fabricated Metrics)

[FACT] 30+ Production Demos: Verified in repository covering Twilio, Telnyx, Plivo, Exotel, IVR navigation, and WebRTC.
[FACT] Smoke Test Runner: scripts/smoke_test_demo.py runs automated demo startup, timeout, and clean teardown validation.
[FACT] Dual-Channel S3 Audio: Built-in audio-recording-s3-multipart-upload pipeline.
[FACT] Zero Fake Claims: No inflated enterprise customer logos, call volume metrics, or ROI percentages claimed.
Commercial Impact

Business Value & Operator ROI

Zero Missed Customer Calls

Answers incoming calls instantaneously 24/7/365, qualifying prospects, answering FAQs, and booking meetings directly on calendars.

70% Telephony Cost Reduction

By bypassing middle-tier proprietary voice bot SaaS providers, companies pay only raw wholesale carrier rates (e.g. $0.004/min on Telnyx).

Pristine Compliance & Audits

Automatic dual-channel stereo recording stores caller and bot audio on independent channels for QA audits and automated transcription.

Scope & Transparent Boundaries

Engineering Limitations & Boundaries

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).

Ecosystem Position

Position in the 7-Stage Growth Ecosystem

ATTRACTUNDERSTANDCREATEOPTIMIZECONVERT (Project 08)MEASUREAUTOMATE (Project 08)

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.

What This Demonstrates to Engineering & Growth Teams

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.

Recruiter Quick CardVerified
Candidate RoleVoice AI Engineer / Systems Developer
Core Tech Stack
PythonWebRTCLiveKitDeepgram STTCartesia TTSTwilio SIPReact
Key ArchitecturePipecat Pipeline, FastAPI WebSockets, Silero VAD, Deepgram Nova-2 STT, Cartesia Sonic TTS, Twilio/Telnyx SIP trunking.
Enterprise Repository
Swastik023/voice-ai-agent-solutions (Private • Request Access)
Contact Swastik AgnihotriView All 12 Projects
Next Project in SequenceProject 09: GurukulX (Assessment Engine)
Astronaut floating in space
Available for 2026 Roles

Let's build repeatable growth engines.

I'm open to Digital Growth, Technical SEO, SaaS, AI Automation, and Analytics opportunities.

Download Resume ↗GitHub Profile ↗LinkedIn Profile ↗Email Me