Review of "Voice Hold" version 0.5 (4)

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.

Diff Against

Files

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

Shexli (experimental) warning 1

Shexli found 1 issue that may need reviewer attention.

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:102
    this._welcomeSource.connect('destroy', () => (this._welcomeSource = null))

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
0.5 adds optional voice commands, off by default (`commands-enabled`), on a second keybinding (Ctrl+Alt+Space). Their code lives in `commands/` and is imported lazily, only when the setting is on. What a reviewer may ask about: (1) the extension itself never runs a shell command: it sends the transcript to a second D-Bus service of the same separate helper (`org.griffit.VoiceHold.Commands`), which classifies it; GNOME actions (volume, dark mode, workspace, launching an app through `Gio.DesktopAppInfo`) are done in the extension, and a shell command is only run by the helper, in a visible terminal, after the user confirmed it in a modal dialog; (2) the Commands page of the preferences has one Install button that spawns the already-installed helper with `setup --commands` (`Gio.Subprocess`, from prefs.js only, never from the Shell process) to download a local language model; nothing is downloaded without that click; (3) the pill reads `org.gnome.desktop.interface font-name` to use the system font, and has four entrance animations done with `ease()`. The speech model changed (Parakeet "Ultra"); there is no Ollama dependency any more. No new prototype patch. About the Shexli warning (EGO-L-003, extension.js:102): that `destroy` handler is on the MessageTray source of the first-run notification, and it only clears the extension's reference to it. disable() destroys that source, so the handler does not outlive the extension. 0.5 replaces 0.4 and 0.3, which were still in the queue. 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.6 (5) was uploaded