<?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: Thilagavathi</title>
    <description>The latest articles on DEV Community by Thilagavathi (@thilagavathi1).</description>
    <link>https://dev.to/thilagavathi1</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%2F508815%2Ff08d2182-98d4-4a80-9d1e-d39babbe24de.jpeg</url>
      <title>DEV Community: Thilagavathi</title>
      <link>https://dev.to/thilagavathi1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thilagavathi1"/>
    <language>en</language>
    <item>
      <title>Second Voice: Facing the Conversations That Haunt You, with Gemma Running Offline on Your Phone</title>
      <dc:creator>Thilagavathi</dc:creator>
      <pubDate>Sat, 31 Oct 2026 04:39:45 +0000</pubDate>
      <link>https://dev.to/thilagavathi1/second-voice-facing-the-conversations-that-haunt-you-with-gemma-running-offline-on-your-phone-5a83</link>
      <guid>https://dev.to/thilagavathi1/second-voice-facing-the-conversations-that-haunt-you-with-gemma-running-offline-on-your-phone-5a83</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Everyone has a ghost like this.&lt;/p&gt;

&lt;p&gt;It's the conversation you keep not having. Asking your manager for the raise you've earned. Telling your mom that five calls a day during work is too many. Apologizing to the friend whose birthday dinner you skipped. Texting your landlord that rent will be four days late.&lt;/p&gt;

&lt;p&gt;It doesn't make noise. It just comes back: in the shower, on the commute, at 2 AM, rehearsing itself in your head with worse and worse wording.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second Voice&lt;/strong&gt; is a private rehearsal room for those conversations. You describe the situation in your own words, by voice or text, and an open-weight model running &lt;strong&gt;on your phone&lt;/strong&gt; helps you find a clear, kind way to say it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What you want to say&lt;/strong&gt;: the core of it, in a sentence or two&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How they may hear it&lt;/strong&gt;: what the other person might be worried about&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A safe opening line&lt;/strong&gt;: the hardest part is the first sentence&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three drafts&lt;/strong&gt;: Calm, Direct, and Firm, all editable&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If they push back&lt;/strong&gt;: likely objections, with respectful replies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then you can &lt;strong&gt;practice it out loud&lt;/strong&gt;. Second Voice reads the draft back to you, you record yourself, and it gives gentle notes on pacing, filler words, clarity, and confidence.&lt;/p&gt;

&lt;p&gt;I took the theme literally: the ghost in the machine is the conversation that keeps haunting you, and the machine is a phone that can finally help you put it to rest, without anyone else ever hearing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;


&lt;div&gt;
    &lt;iframe src="https://www.youtube.com/embed/-iPw5j2f3XE" width="315" height="560"&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Thilagavathi1" rel="noopener noreferrer"&gt;
        Thilagavathi1
      &lt;/a&gt; / &lt;a href="https://github.com/Thilagavathi1/SecondVoice" rel="noopener noreferrer"&gt;
        SecondVoice
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A Private, Local AI for the Words You’re Afraid to Say 
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Second Voice&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;A private, offline rehearsal room for the conversations you keep avoiding.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Describe the conversation that's been haunting you — asking for a raise, setting a boundary with a parent, apologizing to a friend, telling your landlord the rent will be late. Second Voice runs &lt;strong&gt;Google Gemma 3 (1B, open-weight) on your phone&lt;/strong&gt; to help you find a clear, kind way to say it, then lets you practice out loud.&lt;/p&gt;
&lt;p&gt;Nothing is uploaded. There is no account, no analytics, and nothing is ever sent on your behalf.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Second Voice is a communication preparation tool. It does not provide therapy, counseling, medical, or legal advice.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What it does&lt;/h2&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Describe it&lt;/strong&gt; — record a voice note (transcribed on-device) or type.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose&lt;/strong&gt; who it's with, what you want (ask, say no, apologize, explain a delay, set a boundary, negotiate) and a tone (calm, direct, firm).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get a rehearsal&lt;/strong&gt;, generated on-device by…&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Thilagavathi1/SecondVoice" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; Expo (SDK 58) + React Native + TypeScript, Expo Router, Zustand, SQLite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The open pieces doing the work:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Piece&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Gemma 3 1B Instruct&lt;/strong&gt; (Q4_K_M GGUF, ~806 MB)&lt;/td&gt;
&lt;td&gt;Generates the whole rehearsal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;llama.rn&lt;/strong&gt; (llama.cpp for React Native)&lt;/td&gt;
&lt;td&gt;Runs Gemma on the phone, GPU-offloaded where available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;JSON-Schema constrained decoding&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Forces Gemma's output to match the rehearsal shape&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;On-device speech recognition&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Turns voice notes into text with &lt;code&gt;requiresOnDeviceRecognition: true&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart LR
  A[Voice note or text] --&amp;gt;|on-device STT| B[Your words]
  B --&amp;gt; C[Prompt: audience · goal · tone]
  C --&amp;gt; D[Gemma 3 1B via llama.rn&amp;lt;br/&amp;gt;JSON-schema constrained]
  D --&amp;gt; E{Validate + safety check}
  E --&amp;gt;|ok| F[Rehearsal]
  E --&amp;gt;|invalid| G[Repair prompt, retry]
  G --&amp;gt; D
  E --&amp;gt;|no model| H[Built-in examples, clearly labelled]
  F --&amp;gt; I[(Local SQLite)]&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;A few design decisions for getting a 1B model to behave:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Make bad JSON impossible.&lt;/strong&gt; Small models are good at tone and weak at bookkeeping. Ask them nicely for JSON and you risk trailing commentary or missing keys. llama.rn supports grammar-constrained decoding from a JSON Schema, so the model &lt;em&gt;can't&lt;/em&gt; emit anything that doesn't fit &lt;code&gt;{ situationSummary, whatYouWantToSay, howTheyMayHearIt[], safeOpeningLine, drafts{calm,direct,firm}, objections[] }&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Validate anyway, then repair.&lt;/strong&gt; A valid shape can still be bad content: three identical drafts, an empty objection, or a model drifting into advice it shouldn't give. Every response goes through a validator that checks the shape, requires distinct drafts, and rejects medical, legal, therapy, or hostile wording. If it fails, the model gets a &lt;em&gt;repair prompt&lt;/em&gt; listing exactly what was wrong, at a lower temperature, up to three tries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Never fake it.&lt;/strong&gt; If the model isn't downloaded yet, Second Voice falls back to six hand-written scenarios (salary raise, late rent, a boundary with a parent, an apology, a recruiter follow-up, saying no to weekend work). Every rehearsal is labelled with what produced it: &lt;em&gt;"Prepared on this device by Gemma"&lt;/em&gt; or &lt;em&gt;"uses built-in examples."&lt;/em&gt; Showing sample output as AI output felt wrong for an app about honesty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. One interface, swappable engines.&lt;/strong&gt; The UI only knows &lt;code&gt;generateRehearsal(input)&lt;/code&gt;. Gemma, the examples, or a future ExecuTorch runtime all sit behind it.&lt;/p&gt;

&lt;p&gt;On my vivo V2225 in airplane mode, Gemma produces a full rehearsal (summary, concerns, opening line, three drafts, and objections) in about &lt;strong&gt;48 seconds&lt;/strong&gt;. That's slow for a chatbot and fine for a rehearsal: it's roughly the time it takes to take a breath and decide you're actually going to have this conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Because of what this app is built to hear. Think about the kind of thing someone might type into it:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"I'm scared to ask for a raise because my family depends on this job."&lt;/em&gt;&lt;br&gt;
&lt;em&gt;"My dad and I haven't really talked since the funeral."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Sentences like these are some of the most private a person can write. Sending them to a cloud API means trusting a company's servers, logs, retention policy, and future business model with them. With an open-weight model, I didn't have to ask anyone to make that trade:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It works with the lights, and the internet, off.&lt;/strong&gt; After a one-time model download, Second Voice works in airplane mode. The 2 AM rehearsal doesn't need a signal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The words never leave the phone.&lt;/strong&gt; No account, no analytics, no remote logging. Transcription is on-device, generation is on-device, storage is a local SQLite file, and "Delete all data" really deletes it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It can't be taken away.&lt;/strong&gt; A model file on your phone won't get deprecated, re-priced, or shut down. The app keeps working whatever happens to an API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I could shape the model's behaviour.&lt;/strong&gt; With weights and a runtime I control, I could constrain the output grammar, tune temperature per retry, and run my own safety checks, instead of hoping a hosted endpoint does the right thing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A closed API would have been easier to start with. It would also have made the core promise, &lt;em&gt;your words stay on this device&lt;/em&gt;, a lie.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Second Voice never sends anything for you. It doesn't tell you what to feel, and it isn't therapy. It helps you prepare, and then you decide what to say, and when.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma&lt;/strong&gt;: Gemma 3 1B Instruct runs fully on-device via llama.rn and generates every rehearsal, with grammar-constrained JSON output, validation, and repair retries.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>gemma</category>
      <category>reactnative</category>
    </item>
    <item>
      <title>SnapDone: I stopped screenshotting things I'd forget, and let an on-device Gemma do the remembering</title>
      <dc:creator>Thilagavathi</dc:creator>
      <pubDate>Mon, 26 Oct 2026 06:57:24 +0000</pubDate>
      <link>https://dev.to/thilagavathi1/snapdone-i-stopped-screenshotting-things-id-forget-and-let-an-on-device-gemma-do-the-remembering-3je3</link>
      <guid>https://dev.to/thilagavathi1/snapdone-i-stopped-screenshotting-things-id-forget-and-let-an-on-device-gemma-do-the-remembering-3je3</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;My camera roll is a graveyard of good intentions: an electricity bill due "sometime next week", a flight confirmation, a dentist appointment from a chat, a conference schedule. I screenshot them so I won't forget, and then I forget the screenshot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SnapDone&lt;/strong&gt; turns those screenshots into finished actions. Pick a screenshot, and the app:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;reads the text &lt;strong&gt;on the phone&lt;/strong&gt; with OCR,&lt;/li&gt;
&lt;li&gt;asks &lt;strong&gt;Gemma 3 1B, running locally through llama.cpp&lt;/strong&gt;, to pull out what matters (title, date, time, amount, notes),&lt;/li&gt;
&lt;li&gt;shows you the result to &lt;strong&gt;review and edit&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;and only after you confirm, creates a &lt;strong&gt;reminder&lt;/strong&gt; (local notifications the day before and on the day), a &lt;strong&gt;calendar event&lt;/strong&gt;, or a &lt;strong&gt;task&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No account, no cloud and no API key. The screenshot, the extracted text and the history never leave the phone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;


&lt;div&gt;
    &lt;iframe src="https://www.youtube.com/embed/w07Y8e9CwGk" width="315" height="560"&gt;
    &lt;/iframe&gt;
  &lt;/div&gt;


&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/Thilagavathi1/snapdone/tree/main" rel="noopener noreferrer"&gt;https://github.com/Thilagavathi1/snapdone/tree/main&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; Expo SDK 58, React Native 0.88, TypeScript, Expo Router, Zustand, expo-sqlite, expo-notifications, expo-calendar, Reanimated, Zod, &lt;a href="https://github.com/mybigday/llama.rn" rel="noopener noreferrer"&gt;llama.rn&lt;/a&gt; and ML Kit text recognition.&lt;/p&gt;

&lt;p&gt;The pipeline is four small services, each behind an interface so it can be swapped or mocked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OCR service ──► AI service ──► Action service ──► SQLite history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few things I learned along the way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Small models need structure, not freedom.&lt;/strong&gt; I give llama.rn a JSON schema, which it turns into a grammar, so Gemma can only produce the shape I expect. Then I validate again with &lt;strong&gt;Zod&lt;/strong&gt;. If anything fails, the app shows &lt;strong&gt;Needs review&lt;/strong&gt; and switches to manual entry, instead of guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OCR order matters more than the model.&lt;/strong&gt; My first test on a Hacktoberfest schedule screenshot came back as a dateless "task". The OCR was accurate, but it read the page column by column, so each card's date box ended up far from its title. Rebuilding the text &lt;strong&gt;row by row from the text block positions&lt;/strong&gt; put "MON 26 OCT · Build an Open-Source AI Assistant · 10:30 PM" on one line. After that, the same screenshot became a proper calendar event.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory is the real constraint on a phone.&lt;/strong&gt; On my mid-range MediaTek phone, every JavaScript reload left another 800 MB copy of the model in native memory until the phone started swapping. Freeing old contexts before loading, plus 4 threads and a smaller context window, made it usable again.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never act without consent.&lt;/strong&gt; The model proposes; you decide. Nothing is scheduled until you tap the button.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Screenshots are some of the most private data on a phone: bills with account numbers, medical appointments, travel bookings, family chats. Sending them to a closed cloud API to turn them into reminders is a bad trade.&lt;/p&gt;

&lt;p&gt;With an open-weight model running locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy by architecture.&lt;/strong&gt; The screenshot is processed in the phone's memory. There's no server to trust, because there's no server at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It works offline.&lt;/strong&gt; After a one-time model download, it works in airplane mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No recurring cost.&lt;/strong&gt; No API key, no per-request bill, and no rate limits on a feature meant to be used a little every day.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swappable.&lt;/strong&gt; The model sits behind a small &lt;code&gt;LocalModel&lt;/code&gt; interface. Any GGUF that llama.cpp can run can replace Gemma 3 1B, from a smaller model for older phones to a bigger one for flagships.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where the open approach lost: speed and raw accuracy. A cloud model would read a busy schedule faster and better than a 1B model on a mid-range phone. For a "do the boring thing for me, quietly" app, I'll take private and free over fast.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Licensing note: Gemma is open-weight under Google's Gemma Terms of Use. ML Kit is free and runs on the device, but it isn't open source.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;Before: screenshot a bill → forget it → late fee.&lt;br&gt;
Now: screenshot a bill → open SnapDone → tap once to confirm → get reminded the day before. That's the whole interaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
