r/coolgithubprojects • u/BackgroundSoft4818 • 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)
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!
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?
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.
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.