<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mrittiga M</title>
    <description>The latest articles on DEV Community by Mrittiga M (@mrittiga_m).</description>
    <link>https://dev.to/mrittiga_m</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4078628%2F4f067066-5e58-42ed-9d93-8accb84b0585.jpg</url>
      <title>DEV Community: Mrittiga M</title>
      <link>https://dev.to/mrittiga_m</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrittiga_m"/>
    <language>en</language>
    <item>
      <title>🚀 Building Asha AI: A Vernacular Multi-Agent Voice Platform for Kirana Retail (#VoiceForBharat)</title>
      <dc:creator>Mrittiga M</dc:creator>
      <pubDate>Sat, 15 Aug 2026 07:57:32 +0000</pubDate>
      <link>https://dev.to/mrittiga_m/building-asha-ai-a-vernacular-multi-agent-voice-platform-for-kirana-retail-voiceforbharat-2c6g</link>
      <guid>https://dev.to/mrittiga_m/building-asha-ai-a-vernacular-multi-agent-voice-platform-for-kirana-retail-voiceforbharat-2c6g</guid>
      <description>&lt;p&gt;📌 &lt;strong&gt;1. Introduction &amp;amp; The Problem Statement&lt;/strong&gt;&lt;br&gt;
In India's fast-evolving retail ecosystem, millions of local Kirana store owners and everyday consumers face digital barriers due to complex application interfaces, text-heavy steps, and language differences.&lt;br&gt;
During the 10 Days of Voice Agents — VoiceForBharat Edition challenge hosted by Murf AI, I chose the Local Retail &amp;amp; Kirana Commerce Track to build Asha AI.&lt;br&gt;
Asha AI is a voice-first Kirana assistant designed to bridge this gap. By enabling real-time, hands-free voice interactions in Indian languages (English, Hindi, and Tamil), Asha AI allows customers to inquire about product prices, check stock availability, request returns/refunds, and automatically escalate complex queries.&lt;br&gt;
🛠️ &lt;strong&gt;2. The 10-Day Building Journey&lt;/strong&gt;&lt;br&gt;
Here is how Asha AI evolved step-by-step over the 10-day sprint:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Days 1–2 (Foundation &amp;amp; Voice Setup): Configured real-time Web Speech Speech-to-Text (STT) and integrated low-latency Indian voice synthesis (en-IN-aarav) powered by the Murf Falcon TTS API.&lt;/li&gt;
&lt;li&gt;Days 3–4 (Personality, Objectives &amp;amp; Guardrails): Defined system prompts, safety guardrails, and customer interaction objectives for regional Indian retail.&lt;/li&gt;
&lt;li&gt;Days 5–6 (Multilingual Support &amp;amp; Live UI): Added language switching for English, Hindi (हिंदी), and Tamil (தமிழ்), paired with a glassmorphism frontend dashboard displaying active state and live call metrics.&lt;/li&gt;
&lt;li&gt;Days 7–8 (Memory, Tools &amp;amp; Outbound / Escalation Systems): Integrated SQLite for database lookups (stock, pricing, customer history), structured call logging, and automated store manager escalation tickets (#HUM-XXXX).&lt;/li&gt;
&lt;li&gt;Day 9 (Multi-Agent Handoff): Implemented sub-agent orchestration where the Asha Main Agent hands off refund/damaged goods queries to a specialized Returns &amp;amp; Refunds Agent.&lt;/li&gt;
&lt;li&gt;Day 10 (Documentation &amp;amp; Showcase): Consolidated architecture, code, performance metrics, and build learnings into this public guide.
⚙️** 3. Complete Architecture &amp;amp; Workflow Diagram**
Here is how audio, user text, backend logic, database queries, and voice output flow through Asha AI:
┌─────────────────────────────────────────────────────────────┐
│                      USER INTERFACE                         │
│     [ Browser Mic Input / Text Chat / Button Triggers ]      │
└──────────────────────────────┬──────────────────────────────┘
                            │
                            ▼
┌─────────────────────────────────────────────────────────────┐
│               ASHA AI CORE PROCESSING ENGINE                │
│                (python: day9_asha_full_dashboard.py)         │
└───────┬──────────────────────┬──────────────────────┬───────┘
     │                      │                      │
     ▼                      ▼                      ▼
┌──────────────────┐  ┌──────────────────┐  ┌──────────────────┐
│ SQLite Inventory │  │ Sentiment Engine │  │ Session Manager  │
│  &amp;amp; Call Logging  │  │ &amp;amp; Escalation     │  │ &amp;amp; Agent Handoff  │
└────────┬─────────┘  └────────┬─────────┘  └────────┬─────────┘
     │                      │                      │
     └──────────────────────┼──────────────────────┘
                            │
                            ▼
┌─────────────────────────────────────────────────────────────┐
│                   MURF FALCON TTS API                       │
│      (Low-Latency Speech Generation via en-IN-aarav)        │
└──────────────────────────────┬──────────────────────────────┘
                            │
                            ▼
┌─────────────────────────────────────────────────────────────┐
│                    AUDIO &amp;amp; UI FEEDBACK                      │
│    [ Real-Time Voice Output &amp;amp; Glassmorphism Dashboard ]     │
└─────────────────────────────────────────────────────────────┘&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📋 Detailed Step-by-Step Workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User Voice Input: The user clicks the Voice Mic button or types a query in English, Hindi, or Tamil.&lt;/li&gt;
&lt;li&gt;Intent Parsing &amp;amp; Sentiment Engine: Asha's backend analyzes input keywords (e.g., "price", "honey", "damaged", "human") and logs tone sentiment (Positive, Neutral, Negative).&lt;/li&gt;
&lt;li&gt;Database &amp;amp; Multi-Agent Routing:

&lt;ul&gt;
&lt;li&gt;Inventory Enquiries: Queries the local SQLite inventory table.&lt;/li&gt;
&lt;li&gt;Returns &amp;amp; Refunds: Hands context over to the specialized Returns Agent.&lt;/li&gt;
&lt;li&gt;Frustration / Human Help: Triggers an explicit Human Escalation event.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;TTS Generation &amp;amp; UI Feedback: Transformed text is rendered into speech via the Murf Falcon TTS API, while live metrics update instantly on the glassmorphism dashboard.
🎯 &lt;strong&gt;4. Key Project Features Highlight&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Murf Falcon TTS Integration: Lightning-fast text-to-speech audio rendering using Murf AI's conversational voice endpoints.&lt;/li&gt;
&lt;li&gt;Sub-Agent Handoff: Seamless transition between main agent conversation and specialized sub-agents while retaining session context.&lt;/li&gt;
&lt;li&gt;SQLite Live Inventory Engine: Direct database lookups for product stock and order logs.&lt;/li&gt;
&lt;li&gt;Real-time Glassmorphism Analytics: Displays live audio visualizer state, call success rates, customer sentiment metrics, and stock updates.
💥** 5. Challenges Faced &amp;amp; Solutions**
❌ Challenge 1: Latency &amp;amp; Audio Buffering on Fast Responses&lt;/li&gt;
&lt;li&gt;Root Cause: Generating audio responses in real-time caused small playback buffers when processing long strings or switching languages quickly.&lt;/li&gt;
&lt;li&gt;Solution: Priority queuing with direct streaming from the Murf Falcon API while implementing a fallback browser Web Speech audio pipeline to guarantee uninterrupted voice response fallback.
❌ Challenge 2: Context Retention During Sub-Agent Handoffs&lt;/li&gt;
&lt;li&gt;Root Cause: Session context (user details, prior items mentioned) was clearing when transitioning between Asha Main Agent and Returns Specialist Agent.&lt;/li&gt;
&lt;li&gt;Solution: Created a global Python session state manager (session_state) that preserves conversational context, order history, and sentiment logs across agent boundaries.
❌ Challenge 3: Vernacular Code-Mixed Speech Processing&lt;/li&gt;
&lt;li&gt;Root Cause: Handling Hinglish/Tanglish mixed phrases (e.g., "Honey oda price enna?") resulted in misclassified database queries.&lt;/li&gt;
&lt;li&gt;Solution: Normalized incoming transcripts into target item keywords using a dictionary mapper before executing SQLite queries.
💻** 6. How Readers Can Setup &amp;amp; Run Asha AI**
Follow these steps to test the project locally:
Step 1: Clone the Repository
git clone &lt;a href="https://github.com/mrittiga/voice-for-bharat-challenge-2026.git" rel="noopener noreferrer"&gt;https://github.com/mrittiga/voice-for-bharat-challenge-2026.git&lt;/a&gt;
cd voice-for-bharat-challenge-2026&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: Configure Environment Variables&lt;br&gt;
Create a .env file in your root folder (never commit API keys publicly!):&lt;br&gt;
MURF_API_KEY=your_actual_murf_api_key_here&lt;/p&gt;

&lt;p&gt;Step 3: Run the Application&lt;br&gt;
python day9_asha_full_dashboard.py&lt;/p&gt;

&lt;p&gt;Open your browser and navigate to &lt;a href="http://127.0.0.1:8000" rel="noopener noreferrer"&gt;http://127.0.0.1:8000&lt;/a&gt; to interact with the voice agent interface.&lt;br&gt;
🔮 &lt;strong&gt;7. Future Enhancements&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding WebSocket streaming audio transport for near zero-latency full duplex voice communication.&lt;/li&gt;
&lt;li&gt;Expanding voice support to additional Indian regional languages (Telugu, Kannada, Marathi).&lt;/li&gt;
&lt;li&gt;WhatsApp Business API integration for sending instant invoice receipts.
🔗** 8. Links &amp;amp; References**&lt;/li&gt;
&lt;li&gt;GitHub Repository: mrittiga/voice-for-bharat-challenge-2026&lt;/li&gt;
&lt;li&gt;Murf AI Falcon Documentation: Falcon API Docs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F10q3w3xxbk3mn5s5loqo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F10q3w3xxbk3mn5s5loqo.jpg" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>murfai</category>
      <category>voiceforbharat</category>
      <category>10daysofvoiceagents</category>
      <category>murffalcon</category>
    </item>
  </channel>
</rss>
