pi-voice-bridge0.1.2
Opt-in voice input and spoken replies for Pi with replaceable STT and TTS backends
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Speak to Pi. Hear it back.
Voice input and spoken replies, on your terms.
Review what you say. Choose the engines, voices and languages you use.
Quick start · Features · Controls · Docs · Development
Pi VoiceBridge connects your voice to the Pi coding agent. Dictate a message, review the transcript and hear the reply without changing the conversation text. Speech-to-text (STT) and text-to-speech (TTS) backends are replaceable: use a compatible local engine or connect a user-selected service through an adapter.
Capture and controls target Windows x64. The current non-audio qualification target is Node 24.18.0, npm 11.16.0, Pi 1.7.0 and Python 3.13.18 x64 for reference-backend tests. Earlier Pi 1.6.1 results remain historical, not proof for the changed package or host: each exact candidate needs its own receipts. Other platforms/versions, native terminal rendering and physical audio are not implied. See prerequisites and qualification.
Quick start
Requires an existing Pi, Node 24 or newer, and Windows x64 for capture and reference setup. Review extension code first: it runs with your permissions.
Installation routes include pi install npm:pi-voice-bridge, the pinned Git
source pi install git:github.com/AtomHeartFylus/pi-voice-bridge@v0.1.2, and a
reviewed local checkout or extracted archive directory containing package.json
and voice-review.ts. See installation limits.
For a local directory, adapt this absolute path from your target project:
pi -e "C:/path/to/pi-voice-bridge"
Use only one VoiceBridge source per session. This loads it for one invocation; see local registration and removal for persistent use.
- Run
/voice-bridge config. Choose Both (STT and TTS) for the complete voice journey; review existing backend paths or explicitly approve a reference installation plan. Opening the wizard starts no recording, playback or automatic download. - In
/voice-settings, verify auto-send is off for draft review and the optional reader is off for ordinary voice-attributed replies. Existing automation preferences are preserved, not reset by setup. Explicitly/reloadto activate saved mode/path preferences with unchanged code; if module code changed, choose a new Pi process instead./voice-bridge doctordistinguishes saved, desired and active state; static success is not an audio test. - Wait until Pi is idle, with an empty editor and no pending messages. Finish or save existing work first; do not discard a draft just to start capture. F6 deliberately starts recording; F7 ends capture. Wait for transcription and confirmed capture closure before using the draft.
- Inspect and edit the unsent draft. When ready, press Enter once to send it to Pi's normal conversation provider. Auto-send is a separate opt-in, not this path.
- Hear the matching eligible final reply once, without changing its displayed text. A later unrelated typed turn remains silent in ordinary mode.
Engines, models and runtime dependencies are separate from the bridge. Registration installs none of them. Prerequisites and detailed installation cover reference sizes, backend preparation and recovery. TTS-only preparation does not introduce a generic typed-reply reader.
Voice controls require the interactive TUI with a UI. Print, JSON and RPC modes do not provide the qualified voice-control workflow.
Speak, review, listen
- Configure and activate: Run
/voice-bridge config, review the plan, then explicitly activate saved preferences as described above. - Speak: Start and stop a capture with F6 and F7, or execute
/voicefor a confirmed 10-second test. Neither is an audio-free diagnostic. - Review: Inspect/edit the unsent draft and send once when ready. Auto-send is off by default; optional busy steering lets you dictate while Pi is working.
- Listen: Hear attributed voice replies without changing displayed text. Long ordinary replies admit up to 65,536 UTF-16 units through bounded requests, without truncation. Interruption cancels their remainder, rather than acquiring persistent resume. The optional Orchestrator reader separately reads eligible non-voice finals in order; it is off by default.
- Choose your backend: Whisper + Silero and Kokoro/Nicola in Italian are reference adapters, not requirements. See the backend contracts before configuring an alternative.
The reference STT is local; an alternative backend may send audio to a service. Review its code, destinations and data handling before enabling it. Transcription sent to Pi follows the normal conversation provider. Loading an extension or adapter also requires trusting its code.
Controls and settings
| Control | Purpose |
|---|---|
/voice-bridge config |
Guided setup, approved reference installs and static validation; no audio test. |
| F6 / F7 | Start / end recording. |
/voice |
Start a confirmed 10-second recording test. |
/voice cancel |
Cancel the active voice operation. |
/voice pause / /voice resume / /voice status |
Pause, resume or inspect the optional reader; reader controls require it to be enabled. |
/voice-settings |
Open the separate persistent settings menu. |
--voice-auto-send on |
Enable automatic sending (default off). |
--voice-max-seconds 300 |
Set the capture limit (default 60 seconds). |
--voice-tts off |
Disable spoken replies. |
--voice-orchestrator-reader on |
Enable the optional all-final reader. |
--voice-busy-steering on |
Enable dictation during work. |
--voice-orchestrator on |
Enable optional local remote control; target-machine compilation and configuration are required. |
Flags bootstrap fields that have not been saved. Per field, persisted settings take precedence over CLI bootstrap flags, then defaults; saved paths also override their corresponding PI_VOICE_* environment values. Settings live in <agent-dir>/voice-bridge.json and apply across projects using that agent directory. Auto-send and duration changes apply to subsequent captures; mode and path changes require an explicit preference reload. See settings scope and precedence.
Preference reload is not a code update: to adopt changes to .mjs modules, start a new Pi process rather than relying on /reload alone. Opening settings does not reload Pi, record audio or play a test.
Documentation
- Guided configuration and recovery
- Installation and prerequisites
- Backend configuration, trust and contracts
- Persistent settings
- Busy steering and Orchestrator reader
- Pronunciation lexicon
- Contributing and development checks · Security · Changelog
Development
Load a local source checkout
From a target project, adapting the path to the reviewed source directory:
pi -e ./pi-voice-bridge
# Or persistently register it in that project only:
pi install ./pi-voice-bridge --local --approve
-e loads for one invocation; it does not disable saved VoiceBridge preferences.
--approve grants project trust. Keep a registered source directory at its stable path.
Use only one source for this extension per session. No setup, reload or audio action is automatic.
For the currently verified host-free suite, use a reviewed source checkout on Windows x64 with Node 24.18.0. Run it without installing dependencies, engines or models:
npm test
The separate host suite requires a trusted compatible installed Pi package and
npm CLI. For hoisted dependencies, also select the explicit reviewed
PI_VOICE_PI_INSTALL_ROOT described in the full gate guide below. Pi supplies its
SDK peers; do not install a private host copy into the bridge:
$env:PI_VOICE_PI_ROOT = 'C:\absolute\path\to\installed\pi-package'
# Set NPM_CLI_JS to a trusted absolute npm-cli.js if it is not alongside Node.
npm run test:host
node tests/voice-steering-pi-api.mjs
With the chosen Python runtime and optional reference-backend dependencies already
installed, run python -m unittest discover -s tests -p 'test_*.py' separately.
See contributing and the
full non-audio gate
for the exact reviewed tools and qualification limits. The GitHub workflow covers
the host-free suite and npm package dry run, not this full gate.
Check the actual npm artifact and a clean offline install separately:
node tests/npm-package-smoke.mjs
This requires PI_VOICE_PI_ROOT as above and uses the trusted npm-cli.js alongside
Node; set NPM_CLI_JS to its absolute path if npm lives elsewhere. It packs into a
temporary directory and performs a clean offline npm install, then uses the real Pi
loader and command context to check cancellation and an approved static configuration
save in a sandbox. Dialog responses are scripted; native TUI rendering is not tested.
It does not publish, install audio backends or test physical audio.
These checks do not prove physical microphone capture or playback. The package uses an explicit allowlist; do not distribute the entire development folder.
License
MIT for original code, copyright 2026 Filippo Milanoli Turlotte. See LICENSE and third-party notices.