Software Architecture Projects in KarnatakaSoftware Architecture Projects in Karnataka
Cover image for š—›š—²š—®š—±š—¹š—¶š—»š—²: Most Voice AI agents
š—›š—²š—®š—±š—¹š—¶š—»š—²: Most Voice AI agents still feel like glorified walkie-talkies. So I built one that actually listens like a human. Most voice bots today follow a rigid, linear loop: You speak āž” Wait āž” Bot speaks. If you dare interrupt them mid-sentence? They either completely ignore you or their context buffer gets totally mangled. š—§š—¼ š˜€š—¼š—¹š˜ƒš—² š˜š—µš—¶š˜€, I engineered Astra Duplex Agent — a sub-50ms, ultra-low latency, full-duplex conversational Voice AI built to handle natural human interruptions seamlessly. Here is what went into building the architecture under the hood: True Full-Duplex WebSockets: Built on FastAPI, allowing real-time bi-directional audio streaming instead of turn-based HTTP requests. Edge Voice Activity Detection (VAD): Deployed Silero VAD using ONNX Runtime to catch user barge-ins at the edge with near-zero overhead. LangGraph State Machine: Instead of a simple monolithic script, the conversation logic is modeled as a state graph, giving precise control over execution flow. Partial State Tracking & Memory Persistence: This was the trickiest part. When an interruption happens, Astra doesn't just stop audio playback — an async kill-switch halts Groq's LLaMA-3.1 mid-token, calculates the exact partial sentence actually spoken by the TTS, and saves only that partial context to an Upstash Redis buffer. Sub-50ms Inference & Streaming: Leveraged Groq LPU (LLaMA-3.1 + Whisper Large v3) paired with ElevenLabs Turbo v2.5 streaming. The result? An agent that you can interrupt mid-thought, change topics with on the fly, and ask follow-up questions without it losing historical context. Containerized with Docker and live on Render & Vercel. Check out the full architecture & live demo below! https://lnkd.in/eC6yak3i (https://lnkd.in/eC6yak3i)https://lnkd.in/eN38HGZD (https://lnkd.in/eN38HGZD)#VoiceAI (https://www.linkedin.com/search/results/all/?keywords=%23voiceai&origin=HASH_TAG_FROM_FEED) #GenerativeAI (https://www.linkedin.com/search/results/all/?keywords=%23generativeai&origin=HASH_TAG_FROM_FEED) #LangGraph (https://www.linkedin.com/search/results/all/?keywords=%23langgraph&origin=HASH_TAG_FROM_FEED) #SystemDesign (https://www.linkedin.com/search/results/all/?keywords=%23systemdesign&origin=HASH_TAG_FROM_FEED) #FastAPI (https://www.linkedin.com/search/results/all/?keywords=%23fastapi&origin=HASH_TAG_FROM_FEED) #MachineLearning (https://www.linkedin.com/search/results/all/?keywords=%23machinelearning&origin=HASH_TAG_FROM_FEED) #WebSockets (https://www.linkedin.com/search/results/all/?keywords=%23websockets&origin=HASH_TAG_FROM_FEED) #Python (https://www.linkedin.com/search/results/all/?keywords=%23python&origin=HASH_TAG_FROM_FEED) #AIENGINEERING (https://www.linkedin.com/search/results/all/?keywords=%23aiengineering&origin=HASH_TAG_FROM_FEED)
1
54
Cover image for Kafaati