r/coolgithubprojects • • 11h 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)

Post image

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

7 comments sorted by

2

u/CaptJan 9h 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 8h 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!

0

u/Ok_Assist2425 11h 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 11h 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.

-1

u/Ok_Assist2425 9h ago

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

1

u/0rrr 5h ago

Who asked? Who cares?

Are you a bot?

1

u/nhermosilla14 2h 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.