Skip to main content

voice-hold-engine

Local speech-to-text service for the Voice Hold GNOME Shell extension. Runs Parakeet TDT 0.6B "Ultra" (int8, via sherpa-onnx) and the Silero voice activity detector on the CPU, fully offline, and exposes a small session D-Bus service (org.griffit.VoiceHold) that the extension talks to.

pipx install git+https://github.com/d101c/voice-hold#subdirectory=engine
voice-hold-engine setup        # downloads the models (~470 MB, SHA-256 checked) and installs the D-Bus service
voice-hold-engine status       # --verify also hashes the model files
voice-hold-engine uninstall    # removes the service file (--models: the models too)

uv tool install works the same way. Needs Python ≥ 3.12 and PipeWire (pw-record).

D-Bus interface

Object /org/griffit/VoiceHold, interface org.griffit.VoiceHold:

Member Kind Notes
Start(a{sv}) method options: source (s, PipeWire node name, '' = default microphone), silence-stop-s (d), polish (b, through the local llama.cpp server), audio-file (s, tests), realtime (b). Fails with org.griffit.VoiceHold.Error.Busy while a session is active or still decoding. A start that goes nowhere (models missing, microphone, model load) emits Error then Stopped("error").
ListSources() → aa{sv} method microphones known to PipeWire: name, description, default
Source(s) signal human name of the microphone (or file) just opened
Stop() method finishes: decodes what is left, then Stopped("stop")
Cancel() method drops everything in flight, Stopped("cancel")
Status() → a{sv} method models_ready, missing, loaded, state, version, load_seconds
Quit() method exit the process
State(s) signal idle, loading, listening, decoding
Level(d) signal microphone loudness 0..1, about 10 times a second while listening
Speech(b) signal the voice activity detector entered / left speech
Partial(s) signal live text of the segment being spoken (replace the previous partial)
Final(s) signal a finished block; "\n" for a spoken line break
Stopped(s) signal stop, cancel, silence, end-of-audio, error
Error(s) signal models-missing, audio: … (microphone, or pw-record died: its exit status and stderr), model: …, decode: …. All but decode are followed by Stopped("error").

The process unloads the model after 5 minutes without dictation (VOICE_HOLD_IDLE_S), gives the memory back to the kernel (malloc_trim) and exits after 5 more; D-Bus activation brings it back. The service file runs <python of the install> -m voice_hold_engine serve.

Security: this is an ordinary session-bus service; any process of the user's session can call it and read its signals. Licence: GPL-2.0-or-later (see LICENSE; the "or later" is what allows linking Apache-2.0 sherpa-onnx). Models: Parakeet Ultra (Moondream, CC-BY-4.0, post-trained from NVIDIA's Parakeet TDT 0.6B v3) and Silero VAD (MIT), downloaded by the user, verified against pinned SHA-256 sums.

Voice commands (optional)

voice-hold-engine setup --commands downloads a llama.cpp server (MIT, release b12284) and Qwen3.5-2B Q4_K_M (Apache-2.0, 1.2 GB) into ~/.local/share/voice-hold/llm, both pinned to a SHA-256, and installs a second D-Bus service, org.griffit.VoiceHold.Commands (voice-hold-engine commands-serve). It turns a transcript into an intent: rules first (under a millisecond), the LLM for what they leave (constrained to a JSON schema), then guard rails computed from the command text alone (refuse, confirm, or run silently when read-only). The server listens on 127.0.0.1:18642 (VOICE_HOLD_LLM_PORT), is started on demand, unloads the model after ten minutes without a request and is stopped when the helper exits. voice-hold-engine interpret "ouvre firefox" shows what a sentence would do, without doing it. The optional polish of dictated blocks uses the same server.

Development

cd engine
uv venv && uv pip install -e '.[test]'
.venv/bin/pytest
VOICE_HOLD_MODELS=/path/to/models .venv/bin/voice-hold-engine transcribe sample.wav

Metadata

Release files for voice-hold-engine 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voice-hold-engine 0.7.0
File Size Uploaded Provenance Actions
voice_hold_engine-0.7.0.tar.gz 460.4 kB With provenance Details for voice_hold_engine-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voice-hold-engine 0.7.0
File Interpreter ABI Platform Actions
voice_hold_engine-0.7.0-py3-none-any.whl Python 3 none any Details for voice_hold_engine-0.7.0-py3-none-any.whl

Total release size: 555.5 kB

Release files / voice_hold_engine-0.7.0.tar.gz

Download URL voice_hold_engine-0.7.0.tar.gz
Size 460.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d83c882e89b35969f9e1426db7dcb52ef97c4baab334d4d10b11bf55ca82c724
BLAKE2b-256 checksum
How to use checksums
66fa15ffa53fdfba310816646cd07540fc7aaec10154f17f44401b960782f025
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / voice_hold_engine-0.7.0-py3-none-any.whl

Download URL voice_hold_engine-0.7.0-py3-none-any.whl
Size 95.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4ff6c85828a3bc2870d47e25d6fce7c90d0d4a3c5341e2393fbd4c39ca0a5d1
BLAKE2b-256 checksum
How to use checksums
3db6d4cec89827a77457f43c44295c5108d9be7f0a6c6172abd83e2daf07e032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for voice-hold-engine 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for voice_hold_engine-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page