Skip to content
Apixo
Blog
news· 3 min read· via Towards AI

LocalPill Introduces Local-First Voice Dictation and Visual Memory for Windows

LocalPill is an open-source Windows assistant combining local Faster-Whisper voice dictation, Graftcode RPC, and optional Gemini 3 Flash visual memory.

LocalPill Introduces Local-First Voice Dictation and Visual Memory for Windows

LocalPill, a new free and open-source local-first desktop application for Windows 10 and 11, offers users a system-wide voice layer and visual memory assistant. Developed by engineer Jagriti, the tool was built to eliminate the heavy cloud reliance typical of commercial dictation software like Wispr Flow or Superwhisper. Activated globally with a keyboard shortcut (Ctrl+Shift+Space), LocalPill displays a small floating interface over active applications—such as VS Code, web browsers, Slack, or terminal windows—and automatically pastes transcribed, normalized text directly at the active cursor position.

Dual-runtime architecture and speech processing

Under the hood, LocalPill splits its workload across two runtimes: Electron with Node.js on the frontend, and Python on the backend. Electron handles window management, global shortcuts, active window tracking, clipboard operations, simulated keyboard typing via Windows SendInput, screen capture, and text normalization. The Python layer handles audio decoding through PyAV and speech recognition using Faster-Whisper, backed by CTranslate2.

To ensure output is immediately usable, LocalPill includes an offline text normalization pipeline written in Node.js. The engine automatically strips filler words like "um" and "uh", converts spoken punctuation names into proper symbols, preserves structured numerical sequences, and expands custom text snippets like replacing :email with a predefined address. Speech engine backends are pluggable; users can choose default local models (whisper-base, whisper-tiny, whisper-small) operating via int8 quantization on CTranslate2, or opt for cloud backends like Groq Whisper (whisper-large-v3-turbo) and Gnani Prisma (prisma-v3.0). For Indic languages such as Hindi, LocalPill features a specialized Romanized script mode that uses a deterministic offline JavaScript transliterator to output phonetic Latin characters (such as "Mera naam Jagriti hai") instead of Devanagari script.

IPC optimizations and Gemini-powered visual memory

Connecting the Electron frontend to the Python speech service originally required a custom HTTP REST bridge that introduced file-locking issues and added over 320 lines of transport code. To improve communication, Jagriti integrated Graftcode Gateway (gg.exe v1.4.11), which converts Python modules into a Universal Graft Model (UGM) and generates typed Node.js client SDKs. Benchmarks run on a 12th Gen Intel Core i5-12450HX machine with 16 GB RAM over 50 iterations showed median transport latency falling from 1.07 ms over REST to 0.46 ms over Graftcode RPC. However, end-to-end transcription testing with whisper-base revealed an inference slowdown from 1,086 ms (p50) on standalone Python to 4,580 ms (p50) inside the Gateway runtime, caused by multi-threading configuration limits in CTranslate2's OpenMP worker loops (OMP_NUM_THREADS).

Beyond voice dictation, LocalPill includes an optional visual memory feature powered by Google Gemini 3 Flash. Screenshots are indexed with multimodal descriptions into a local 25-slot FIFO vector store, allowing users to query past screen context using cosine similarity. To protect privacy, the visual memory operates in two distinct modes: a background Hybrid Mode that scans newly saved Windows screenshots up to 72 hours back, and an Intentional-Only Mode where screenshots are only processed when explicitly triggered by voice command.

What it means for developers

LocalPill provides a practical blueprint for developers building hybrid, privacy-conscious desktop AI tools. By utilizing Graftcode, the application automatically exposes its local speech and text functions as Model Context Protocol (MCP) endpoints (such as http://localhost:8085/mcp). This allows external tools like Claude Desktop or Google Antigravity to invoke methods like TranscribeFileJson directly.

To keep local environments secure when exposing tools to AI agents, LocalPill enforces strict path validation in Python using os.path.realpath. Access is restricted strictly to %USERPROFILE%\LocalPillRecordings, rejecting path traversal, junction escapes, and unsupported file extensions outside standard audio formats (.wav, .mp3, .m4a, .webm, .ogg, .flac).

As developers design systems that balance local inference with cloud-based capabilities, choosing the right infrastructure for external LLM calls remains key. When cloud connections are required, developers can try top AI models cheaply through one API at https://apixoai.online. LocalPill illustrates how local execution for core interactions can be combined with modular cloud services and agentic protocols without locking users into pure cloud dependencies.


Source: Building LocalPill: A Local-First Voice Layer and Visual Memory Assistant for Windows — Towards AI. Written by the Apixo team from that report.

#ai-news#ai#windows#whisper#open-source#mcp
Try it with your own tools

One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.

Get your API key

Keep reading