Review of "Voice Hold" version 0.2 (1)

Details Page Preview

Hold a key and speak. Offline dictation, text arrives as you talk. Hold the shortcut (Ctrl+Space by default), speak, release: the words are typed in the text field under your cursor while you talk, block by block, with a grey live preview. A quick tap keeps listening hands-free (tap again, Escape or a few seconds of silence stop it). A pill floats at the bottom of the screen while you dictate, with the microphone level and the live text; it can hang from the top bar or follow the text cursor instead. Short sounds mark the start and the end, and music pauses, or is turned down, while you speak. If you change window while you dictate, the words follow your cursor. Everything runs on your computer, offline: French, English and 23 other European languages are recognised with punctuation (Parakeet TDT 0.6B Ultra through sherpa-onnx). No account. Your voice never leaves the computer. Also: your own vocabulary and replacements (a word you retype just after a dictation is learned, by reading the text around your cursor for 45 seconds), spoken self-corrections and lists, a mode per kind of application (as said, message, email, notes), a history of the dictations (off by default), a Usage page that counts your words (numbers only) and "Paste the last dictation" in the top bar menu. Optional wake word, off by default: say "Hé Kodiak" (or your own phrase) to start a hands-free dictation. The word is recognised on your computer; the microphone then stays open while the session is unlocked, and GNOME shows its microphone indicator. Optional voice commands, off by default: a second shortcut (Ctrl+Alt+Space), say what to do. Opening an application, the volume, dark mode or a workspace happen at once; a shell command is shown first and only runs after you confirm. With text selected, what you say rewrites it. What the rules do not know goes to a small language model that the engine runs on your computer (llama.cpp, a separate download of about 1.3 GB). Optional cloud model, off by default: with your own API key, the voice commands, the modes that rewrite and the optional clean-up of each sentence can use a cloud model instead of the local one. Only text is sent, never your voice. If you allow it, a picture of the active window (never the whole screen) is sent when the model asks to look, so it can show where to click; a click or a shortcut it proposes only happens after you confirm. The speech engine is a separate download (Python, GPL, about 500 MB with its models) that cannot be part of this package; nothing works without it. The extension installs it for you: a notification and the settings open an Installation page with one Install button, no terminal and no password, and a field to try the dictation in. Requires PipeWire and Python 3.12 or newer. Wayland only; applications that use the GNOME input method (GTK, Qt, Electron with Wayland) get the text as you talk, the others get it pasted at the end. What the extension does outside the shell, stated plainly: - Network: only after you click Install in the preferences (Installation page, or the Commands page for the language model), when you test an API key on the Cloud page, and, if the cloud model is on, when the engine sends a request to the provider you chose. The Installation page reads a list of files pinned to a tagged release (raw.githubusercontent.com/d101c/hold-setup, tag v0.9) and downloads the engine and the speech models; every file is checked against the SHA-256 of that list before it is unpacked. Switching the wake word on makes the engine download its model once (about 54 MB). - Files written: the engine and its packages in ~/.local/share/hold, the models in ~/.local/share/voice-hold, and the D-Bus service file ~/.local/share/dbus-1/services/org.griffit.VoiceHold.service (the voice commands add org.griffit.VoiceHold.Commands.service, and the language model goes in ~/.local/share/voice-hold/llm). With the history on, the dictations are kept in ~/.local/share/voice-hold/dictations.json. The number of words and the time dictated each day (never the words) are kept in ~/.local/share/voice-hold/usage.json; a switch turns that off. Nothing is written outside your home folder, and no administrator right is used. - Keyring: an API key you enter on the Cloud page is stored in the GNOME keyring (libsecret), nowhere else. - Subprocess: from the preferences only, on a click on the Commands page Install button, the installed engine is run once as `setup --commands` to download the language model. The shell process itself starts nothing but the D-Bus activation of the engine and, for a voice command you confirmed, what the engine runs in a visible terminal. - Clipboard: when an application does not take dictated text directly, the text is put in the clipboard and pasted; "Paste the last dictation" and the Copy buttons in the preferences write to it too. It is never read. - Sound: with "Turn down" chosen, the volume of what other applications play is lowered through GNOME's own mixer while you dictate, and put back afterwards. - Keyboard and pointer: pasting presses Ctrl+V through a virtual keyboard; with the cloud model, a click or a shortcut you confirmed goes through a virtual pointer or keyboard. - Removing it: there is no uninstall button. Disabling the extension removes everything it adds to the shell and starts nothing more (the engine is a separate program, started by D-Bus on demand). To remove the engine, delete ~/.local/share/hold, ~/.local/share/voice-hold and the org.griffit.VoiceHold*.service files in ~/.local/share/dbus-1/services (or run `voice-hold-engine uninstall --models` if you installed the engine with pipx).

Extension Homepage
https://github.com/d101c/voice-hold

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental)

Shexli did not find any issues.

All Versions

Version Status
0.9.2 (6) Unreviewed
0.6 (5) Rejected
0.5 (4) Rejected
0.4 (3) Rejected
0.3 (2) Rejected
0.2 (1) Rejected

Previous Reviews on this Version

jg__ posted a review
Voice Hold needs a separate helper (voice-hold-engine, Python, GPL-2.0-or-later, same repository) that does the speech recognition offline with sherpa-onnx. The extension only talks to it over the session bus (org.griffit.VoiceHold, D-Bus activation) and shows the install command in its preferences; it never spawns anything itself and nothing works without it, as the description says. Two points a reviewer may ask about: (1) keyHook.js wraps IBus.InputContext.prototype.process_key_event_async only while a hands-free session is running, to catch Escape, and restores it only if the wrapper is still its own (otherwise it stays inert in the chain); (2) hud.js reads Main.inputMethod._cursorRect to place the pill under the text cursor and falls back to the pointer when it is absent. The Copy button in the preferences writes the install command to the clipboard, as declared. Tests: 54 gjs cases for the extension modules, 61 pytest cases for the engine. I used AI assistance to write and review this code and can explain every line.
jg__ auto- rejected
Auto-rejected because of new version 0.3 (2) was uploaded