I built a fully local alternative to Wispr Flow in Rust
I wanted dictation like Wispr Flow, but without the subscription and without my voice being uploaded to someone's cloud. So I built Hamsa, and it is now open source. How it works Hold Ctrl + Win, speak, let go, and the text is pasted into whatever app has focus. Your editor, a chat, a browser, an email, anywhere you can type. Double-tap the shortcut instead and it keeps listening hands-free: tap…
The author wanted dictation functionality similar to Wispr Flow, but without the subscription costs and without sending their voice data to a cloud server. As a result, they developed Hamsa, an open-source alternative that is now available on GitHub.
Hamsa works by utilizing a shortcut key combination (Ctrl + Win) to start dictating. As the user speaks, their words appear in real-time above a small floating bar. To end the dictation, the user can tap the shortcut once. Esc can be pressed to cancel the current dictation session.
Under the hood, Hamsa uses Phonon, a pure Rust implementation of the Parakeet-TDT speech model. This engine runs on the user's GPU through wgpu when available, falling back to a CPU-based implementation if necessary. All processing occurs locally on the user's PC, meaning no account or subscription is required, and the user's voice and transcribed text remain on their machine.
Hamsa's dictionary, snippets, notes, and history are all stored locally. The application allows users to teach it specific words and phrases to spell correctly or to replace, as well as add replacements. Additionally, Hamsa supports snippet insertion through short cues. It also offers style rules, such as automatic removal of filler words, conversion of spoken lists into bulleted lists, and smart punctuation adjustments.
For users who want an additional layer of processing, Hamsa offers an optional small local language model for smart cleanup. Furthermore, there are optional Moroccan Darija speech models available. Setting up Hamsa is a five-step process that begins quietly in the system tray and can be customized with light or dark themes.
Currently, Hamsa is in beta and only supports Windows 10/11. It is built using Rust and the Slint UI toolkit and is licensed under the Apache 2.0 license. The project's GitHub repository can be found at https://github.com/mostafadrazy/hamsa, and a demo video is available at https://mostafadrazy.github.io/hamsa/.
The author invites feedback, particularly from frequent dictation users, and asks readers to consider what features would make them switch from their current dictation solution.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to