r/coolgithubprojects • • 5d ago

I built a 100% offline Windows voice-to-text app in C++ (whisper.cpp) — ~450 MB RAM, no GPU needed, Auto-Paste with Alt+Q (MIT)

Introducing VoiceType – A free, open-source, local voice-to-text tool for Windows

Hey everyone!

I wanted a fast, private voice-to-text tool for my Windows laptop. Since I don't have a dedicated GPU and work on a corporate network where cloud-based dictation isn't an option, I decided to build my own solution: VoiceType.

It's now open-source under the MIT License!

How it works

  • Press Alt + Q (or click the draggable floating microphone button) from any application.
  • Speak naturally and press Alt + Q again to stop recording.
  • VoiceType transcribes your speech locally using your CPU and automatically pastes the text (Ctrl + V) wherever your cursor is.
  • The floating microphone never steals focus from your active window, thanks to WS_EX_NOACTIVATE.
  • Audio cues let you know when recording starts and when the transcription is pasted.

Technical details – 3x less RAM usage

I initially built the application using Python + PyTorch, which consumed approximately 1.38 GB of RAM.

After switching to the C++ whisper.cpp engine through pywhispercpp, using a quantized Q8_0 model, I managed to significantly reduce its footprint.

Current performance:

  • RAM usage: ~450 MB
  • Model: small-q8_0
  • Inference: CPU-based, no dedicated GPU required
  • Startup: ~0.4 seconds

It also includes a Learn Correction dialog, allowing you to correct transcription mistakes and teach the application custom technical terms, abbreviations, and mixed-language words using initial_prompt and a regex-based dictionary.

Download and source code

GitHub Repository:
https://github.com/RodVerruck/VoiceType

Download ready-to-use Windows executables (Lite / Standard / Pro):
https://github.com/RodVerruck/VoiceType/releases

The project is completely free and open-source under the MIT License.

I'd love to hear your feedback, suggestions, and ideas for improvements. Contributions and PRs are also very welcome!

Thanks for checking it out!

0 Upvotes

11 comments sorted by

2

u/CaptJan 5d ago

Before downloading your app and playing around with it, how does it compare to speech to text Apps that utilize the NVIDIA graphics card on a desktop. I want to make sure it's not sluggish on my older i7 from a dozen years ago?

1

u/BackgroundSoft4818 5d ago

Honestly, if you have a decent NVIDIA card on your desktop, GPU-accelerated apps will definitely beat it in raw speed, especially on larger models. I built this mostly for laptops and work PCs that don't have a dedicated GPU. On a 12-year-old i7, I'd skip the Pro (large-v3-turbo) zip since that will feel sluggish on CPU. The Lite (base) version should still be pretty snappy for short sentences (around 1–2s), and Standard (small) will probably take a few seconds depending on how long you talk. It trims silence and shrinks the audio context window to match your speech length instead of always crunching 30 seconds, which helps a lot on older CPUs.

If you want to give it a quick spin, I'd start with Lite or Standard and see how it feels on your rig!

1

u/Lines25 3d ago
  1. Every laptop has a GPU, most of laptops today have decent for small models dedicated GPUs. A lot of PCs have dedicated GPU and it will be almost always NVIDIA cuz their old GPUs are cheap as hell. They aren't quite nicest ones but it will be almost every time better than CPU
  2. Whisper model is terrible at non-easy english tasks

0

u/BackgroundSoft4818 3d ago

Fair points, though the target audience here is a bit different:

  1. Integrated vs. Dedicated GPUs: Most corporate and ultrabook laptops only ship with integrated graphics (Intel UHD/Iris or AMD Radeon iGPU), not dedicated NVIDIA cards with CUDA support. Even when an older desktop GPU is available, bundling multi-gigabyte CUDA/PyTorch dependencies makes distribution heavy and often runs into strict corporate IT policies. Running quantized whisper.cpp on CPU keeps it portable (~450 MB RAM) with zero driver setup.
  2. Domain vocabulary**:** Out-of-the-box small models definitely struggle with technical jargon and mixed languages. That's specifically why I built the Learn Correction feature (it dynamically feeds custom terms into Whisper's initial_prompt alongside regex post-processing, which significantly improves accuracy for specialized workflows without needing a massive model.)

2

u/nhermosilla14 5d ago

How does it compare to something like hex (from Anomaly)? That's what I'm using now and it works well, but the text input relies on the clipboard, which doesn't work that well in a terminal.

1

u/BackgroundSoft4818 4d ago

Yeah, until today VoiceType did the exact same thing (clipboard + Ctrl+V).

Your comment actually gave me a push to add a few things to main right away:

- Added a "Direct typing" insert mode in the tray menu, so it sends keystrokes directly instead of relying on Ctrl+V in terminals.

- Added a "Change hotkey" dialog with terminal-friendly presets like F9, F8, or Pause (since Alt+Q can leak a 'q' in some terminals).

- Switched the default UI to English with auto language detection (and a live switcher in the tray).

All of that is live in the v1.1.0 release right now.

1

u/Ok_Assist2425 5d ago

its called speech to text (STT) you might notice its the reverse of TTS (text to speech). you should know that before you advertise a product.

2

u/BackgroundSoft4818 5d ago
  1. It's not a product I'm selling. It's a free tool that anyone can use, with optional donations for those who want to support the project.
  2. Where did I say it was TTS (Text-to-Speech)? If you read the post carefully, you'll see I wrote "Voice-to-Text", which describes exactly the same process as Speech-to-Text (STT): converting spoken words into text.

0

u/Ok_Assist2425 5d ago

hopeless... voice is wrong, you don't transcribe voices you transcribe speech.

1

u/0rrr 5d ago

Who asked? Who cares?

Are you a bot?

1

u/Anthietic 18h ago
  1. Is this AI Slop ?
  2. Why bother using a llm when non-llm solution already work perfectly ? it's like buying an rtx 5090 to play minecraft at 720p