<?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: Vani Soni</title>
    <description>The latest articles on DEV Community by Vani Soni (@vani_soni).</description>
    <link>https://dev.to/vani_soni</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3875130%2F2078542c-5d8d-470f-a3ed-1182b526d932.png</url>
      <title>DEV Community: Vani Soni</title>
      <link>https://dev.to/vani_soni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vani_soni"/>
    <language>en</language>
    <item>
      <title>VOICE CONTROLLED LOCAL AI AGENT</title>
      <dc:creator>Vani Soni</dc:creator>
      <pubDate>Sun, 12 Apr 2026 16:48:38 +0000</pubDate>
      <link>https://dev.to/vani_soni/voice-controlled-local-ai-agent-n2l</link>
      <guid>https://dev.to/vani_soni/voice-controlled-local-ai-agent-n2l</guid>
      <description>&lt;p&gt;Hey Everyone!!&lt;br&gt;
Just wanted to share a quick glimpse of my latest project, &lt;strong&gt;&lt;em&gt;"VOICE CONTROLLED LOCAL AI AGENT"&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I have always been deeply interested in AI and Machine Learning, especially how systems like ChatGPT, Claude, Copilot, etc., work behind the scenes. So, I decided to create something related to it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚙️HOW IT WORKS:-&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The user provides input - either in the form of AUDIO or TEXT.&lt;/li&gt;
&lt;li&gt;Audio input is then converted into text using speechrecognition.&lt;/li&gt;
&lt;li&gt;The text is sent to a local LLM (Llama3 via Ollama) to detect user intent.&lt;/li&gt;
&lt;li&gt;Based on the detected intent, the agent performs actions like:
*Creating a file
*Generating Python code
*Summarising text
*General chat response&lt;/li&gt;
&lt;li&gt;The result is displayed through a Streamlit interface.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;🛠️TECH STACK:-&lt;/strong&gt;&lt;br&gt;
Python&lt;br&gt;
Streamlit&lt;br&gt;
Pydub&lt;br&gt;
SpeechRecognition&lt;br&gt;
Llama3 via Ollama (LLM)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🚧 CHALLENGES FACED:-&lt;/strong&gt;&lt;br&gt;
*Initially implemented Whisper for speech-to-text, but faced compatibility issues as it works best with Python 3.10, while my environment was Python 3.14.&lt;br&gt;
*Switched to SpeechRecognition + Pydub, ensuring smoother compatibility and execution.&lt;br&gt;
*Handling multiple audio formats required converting files into WAV format before processing.&lt;br&gt;
*Ensuring accurate intent detection from LLM responses and cleaning inconsistent outputs.&lt;/p&gt;

&lt;p&gt;This project helped me understand how AI agents actually function — from input processing → intent understanding → action execution.&lt;/p&gt;

&lt;p&gt;Still improving it and planning to add more advanced features soon!!&lt;/p&gt;

&lt;p&gt;Would love to hear your feedback!😊&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>python</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
