<?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: Roshan Sankhat</title>
    <description>The latest articles on DEV Community by Roshan Sankhat (@roshan-sankhat).</description>
    <link>https://dev.to/roshan-sankhat</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%2F4078495%2F2daad66f-1745-4fde-b725-879e4fae8fa9.jpg</url>
      <title>DEV Community: Roshan Sankhat</title>
      <link>https://dev.to/roshan-sankhat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roshan-sankhat"/>
    <language>en</language>
    <item>
      <title>Building a Voice-First Learning Companion — My 10 Days of Voice Agents Journey</title>
      <dc:creator>Roshan Sankhat</dc:creator>
      <pubDate>Sat, 15 Aug 2026 05:21:09 +0000</pubDate>
      <link>https://dev.to/roshan-sankhat/building-a-voice-first-learning-companion-my-10-days-of-voice-agents-journey-17e8</link>
      <guid>https://dev.to/roshan-sankhat/building-a-voice-first-learning-companion-my-10-days-of-voice-agents-journey-17e8</guid>
      <description>&lt;p&gt;Over the last ten days, I took part in 10 Days of Voice Agents — VoiceForBharat Edition, building a voice agent from scratch using Murf Falcon, the fastest TTS API. Here's the story of what I built, the problems I ran into, and how you can build something similar.&lt;/p&gt;

&lt;p&gt;The problem and the users&lt;/p&gt;

&lt;p&gt;School-level students often need help across general learning and literacy topics but don't always have someone available to talk to instantly. Typing out doubts is also a real barrier — especially for younger students or those less comfortable with text.&lt;/p&gt;

&lt;p&gt;I built a voice-first learning companion for the Learning &amp;amp; Literacy track that lets students just ask their question out loud, the way they'd ask a teacher in person, instead of typing it out.&lt;/p&gt;

&lt;p&gt;What the voice agent does&lt;/p&gt;

&lt;p&gt;The agent helps school-level students with learning and literacy topics across subjects. For maths specifically, it hands the conversation off to a dedicated Maths Practice Specialist agent that can walk students through problems step by step. When the agent hits something it can't confidently handle, it escalates to a human via email rather than guessing — so students always have a reliable path to help.&lt;/p&gt;

&lt;p&gt;How the system works&lt;/p&gt;

&lt;p&gt;Audio flows from the student through speech-to-text, into the main LLM agent, and back out through text-to-speech — all in real time. The main agent can branch out to tools, a specialist agent, or human escalation whenever the conversation needs it.&lt;/p&gt;

&lt;p&gt;(See the architecture diagram shared alongside this post.)&lt;/p&gt;

&lt;p&gt;The most important features&lt;br&gt;
Indian voice powered by Murf Falcon — the agent speaks in a Murf voice built for India, making it feel natural and familiar to Indian students.&lt;br&gt;
Personality, objectives &amp;amp; guardrails — clear objectives (help with learning, never shame wrong answers, never diagnose learning disabilities) and a defined escalation script.&lt;br&gt;
Code-mixed language support — handles students who mix Hindi and English mid-conversation, replying in the same register.&lt;br&gt;
Stateful frontend — clearly shows Ready, Connecting, Listening, Speaking, and Call Ended states so students always know what's happening.&lt;br&gt;
Memory for returning students — saves each learner's level, topics covered, and recurring mistakes, and greets them by name on their next call, continuing where they left off.&lt;br&gt;
Tools for real learning tasks — fetches the next exercise based on level and scores spoken answers, with a graceful fallback if data is unavailable.&lt;br&gt;
Outbound practice calls — calls the student at a time they picked for a daily practice session.&lt;br&gt;
Human escalation — when a learner is upset or needs a teacher, the agent creates an escalation request and emails a human with a summary (not the full transcript).&lt;br&gt;
Call analytics dashboard — tracks total, successful, and failed calls using real data, without exposing transcripts or private info.&lt;br&gt;
Specialist handoff — routes maths-related queries to a dedicated Maths Practice Specialist agent, which continues the conversation without the student repeating themselves.&lt;br&gt;
Challenges and how I overcame them&lt;/p&gt;

&lt;p&gt;One of the trickiest parts of the challenge was getting outbound calls working. Since the agent had to initiate contact on its own instead of waiting for a user to connect, testing wasn't as simple as opening a browser tab — I used Linphone, a SIP client, to actually receive and test these outbound calls, which took some setup to get right.&lt;/p&gt;

&lt;p&gt;The bigger, recurring problem across all nine days was API token limits. Thoroughly testing a voice agent — across multiple features and conversation paths — burns through tokens fast, and I kept running into rate limits mid-testing. To keep moving without losing momentum, I ended up using API keys across almost all the major LLM providers, switching between them whenever one ran low. Fortunately, the switch was smooth with no compatibility issues between providers.&lt;/p&gt;

&lt;p&gt;How readers can build and run it&lt;/p&gt;

&lt;p&gt;If you want to build something similar, here's how the pieces fit together and how to get started.&lt;/p&gt;

&lt;p&gt;Main components:&lt;/p&gt;

&lt;p&gt;Speech-to-text (STT) — converts the student's spoken input into text&lt;br&gt;
LLM — processes the text, decides what to say, and calls tools (fetch exercise, escalate to human, hand off to specialist) when needed&lt;br&gt;
Text-to-speech (TTS) — Murf Falcon converts the agent's reply into natural Indian-voice speech&lt;br&gt;
Real-time transport — LiveKit handles the live audio connection between the student and the agent&lt;/p&gt;

&lt;p&gt;Setup &amp;amp; running:&lt;/p&gt;

&lt;p&gt;Clone the repo: git clone &lt;a href="https://github.com/RoshanSankhat/murf-livekit-starter.git" rel="noopener noreferrer"&gt;https://github.com/RoshanSankhat/murf-livekit-starter.git&lt;/a&gt;&lt;br&gt;
Follow the setup and run instructions in the repo's README&lt;br&gt;
Add your API keys to a .env.local file — never commit this file or expose your keys publicly&lt;br&gt;
Run the project locally and connect via the frontend to start a conversation&lt;/p&gt;

&lt;p&gt;Testing a conversation: Open the frontend, click to connect, and talk to the agent once it's in the "Listening" state. Watch the state indicators (Connecting → Listening → Speaking) to follow the flow.&lt;/p&gt;

&lt;p&gt;You can inspect the full code, including the human escalation and specialist handoff logic, in the repo.&lt;/p&gt;

&lt;p&gt;What I would improve next&lt;br&gt;
Reduce dependency on switching between multiple LLM providers by optimizing token usage during testing&lt;br&gt;
Expand outbound call testing to more real-world scenarios beyond Linphone&lt;br&gt;
Add more subject-specific specialist agents beyond maths&lt;br&gt;
Links to the code and demos&lt;br&gt;
Repository: murf-livekit-starter (fork)&lt;br&gt;
Day 1 – First voice connection: &lt;a href="https://lnkd.in/p/dKeQzP8P" rel="noopener noreferrer"&gt;https://lnkd.in/p/dKeQzP8P&lt;/a&gt;&lt;br&gt;
Day 2 – Persona, objectives &amp;amp; guardrails: &lt;a href="https://lnkd.in/p/dp_QBgzx" rel="noopener noreferrer"&gt;https://lnkd.in/p/dp_QBgzx&lt;/a&gt;&lt;br&gt;
Day 3 – Frontend with agent states: &lt;a href="https://lnkd.in/p/db_dGTpp" rel="noopener noreferrer"&gt;https://lnkd.in/p/db_dGTpp&lt;/a&gt;&lt;br&gt;
Day 4 – Memory for returning students: &lt;a href="https://lnkd.in/p/dxxRzjaT" rel="noopener noreferrer"&gt;https://lnkd.in/p/dxxRzjaT&lt;/a&gt;&lt;br&gt;
Day 5 – Tools for fetching exercises: &lt;a href="https://lnkd.in/p/dUY4w4VS" rel="noopener noreferrer"&gt;https://lnkd.in/p/dUY4w4VS&lt;/a&gt;&lt;br&gt;
Day 6 – Outbound practice calls: &lt;a href="https://lnkd.in/p/gJWHjZTq" rel="noopener noreferrer"&gt;https://lnkd.in/p/gJWHjZTq&lt;/a&gt;&lt;br&gt;
Day 7 – Human help escalation: &lt;a href="https://lnkd.in/p/gwFzKAbt" rel="noopener noreferrer"&gt;https://lnkd.in/p/gwFzKAbt&lt;/a&gt;&lt;br&gt;
Day 8 – Call analytics dashboard: &lt;a href="https://lnkd.in/p/dxgTD4Sz" rel="noopener noreferrer"&gt;https://lnkd.in/p/dxgTD4Sz&lt;/a&gt;&lt;br&gt;
Day 9 – Maths specialist handoff: &lt;a href="https://lnkd.in/p/dgrmVqzB" rel="noopener noreferrer"&gt;https://lnkd.in/p/dgrmVqzB&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built using Murf Falcon — the fastest TTS API — as part of 10 Days of Voice Agents — VoiceForBharat Edition. #VoiceForBharat&lt;br&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%2Fy8mymwguvyd6cume3qyj.png" 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%2Fy8mymwguvyd6cume3qyj.png" alt=" " width="800" height="541"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>education</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
