@juicesharp/rpiv-voice 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +89 -79
- package/docs/configuration.md +125 -0
- package/docs/keybindings.md +84 -0
- package/docs/model.md +137 -0
- package/package.json +5 -2
- package/docs/cover.png +0 -0
- package/docs/cover.svg +0 -162
- package/docs/equalizer.svg +0 -86
- package/docs/overlay.jpg +0 -0
- package/docs/overlay.png +0 -0
- package/docs/vertical-cover.png +0 -0
- package/docs/vertical-cover.svg +0 -239
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to `@juicesharp/rpiv-voice` are documented here.
|
|
|
5
5
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.2.0] - 2026-07-29
|
|
9
|
+
|
|
10
|
+
## [2.1.0] - 2026-07-23
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- README rewritten to follow the documentation standard shared across all packages.
|
|
14
|
+
- npm tarball now includes the versioned `docs/` reference and no longer ships cover or screenshot art.
|
|
15
|
+
|
|
8
16
|
## [2.0.0] - 2026-07-21
|
|
9
17
|
|
|
10
18
|
### Added
|
package/README.md
CHANGED
|
@@ -1,117 +1,127 @@
|
|
|
1
|
-
# rpiv-voice
|
|
1
|
+
# @juicesharp/rpiv-voice
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@juicesharp/rpiv-voice)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
5
|
|
|
3
6
|
<div align="center">
|
|
4
7
|
<a href="https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-voice">
|
|
5
8
|
<picture>
|
|
6
|
-
<img src="https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-voice/docs/cover.png" alt="rpiv-voice cover" width="50%">
|
|
9
|
+
<img src="https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-voice/docs/cover.png" alt="rpiv-voice cover: a mocked /voice overlay showing a live transcript, an equalizer strip, and the status row" width="50%">
|
|
7
10
|
</picture>
|
|
8
11
|
</a>
|
|
9
12
|
</div>
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Features
|
|
16
|
-
|
|
17
|
-
- **100% on-device** — audio never leaves your laptop. No accounts, no API keys, no network calls after the first model download.
|
|
18
|
-
- **~99 languages, autodetected** — Whisper base multilingual handles the full Whisper language set with per-utterance autodetection. Switch languages mid-session without changing settings.
|
|
19
|
-
- **Live transcript** — committed lines render as you finish phrases, with a dim rolling partial showing the still-active utterance in real time. What you see is what gets pasted (no waiting for a "proper" final).
|
|
20
|
-
- **VAD-driven chunking** — Silero voice-activity detection breaks long monologues at natural pauses, so latency stays bounded even on a 5-minute rant.
|
|
21
|
-
- **Settings screen built-in** — `Tab` flips to a settings panel showing your active mic, detected language, and a hallucination filter toggle. `Ctrl-S` to save, `Esc` or `Tab` to return to dictation.
|
|
22
|
-
- **Whisper hallucination filter** — strips spurious "Thanks for watching", "[Music]", and repeating-token loops that Whisper sometimes emits on silence. Toggle off if you're dictating short single words.
|
|
23
|
-
- **Pause / resume** — hit `Space` to mute the mic without closing the overlay; great for stepping aside mid-thought.
|
|
24
|
-
- **Localized UI** — overlay, status bar, and settings render in German, English, Spanish, French, Portuguese (European + Brazilian), Russian, and Ukrainian when [`@juicesharp/rpiv-i18n`](https://www.npmjs.com/package/@juicesharp/rpiv-i18n) is installed. Falls back to English when it isn't.
|
|
25
|
-
- **Honest first-run UX** — the splash overlay shows download progress (percent + bytes), then `Extracting…`, `Verifying…`, `Loading engine…`, `Initializing mic…` before the dictation overlay opens. Half-loaded states never reach you.
|
|
26
|
-
- **Configurable cancel keybinding** — bind cancel to whatever your fingers prefer; no longer hardcoded to `Esc`.
|
|
27
|
-
- **Errors persisted, not swallowed** — recognition failures land in `~/.config/rpiv-voice/errors.log` so you can see why a phrase didn't transcribe.
|
|
14
|
+
Dictate long prompts to [Pi Agent](https://github.com/badlogic/pi-mono) instead of typing
|
|
15
|
+
them. `rpiv-voice` adds a `/voice` command: an overlay opens, you speak, you press
|
|
16
|
+
`Enter`, and the transcript drops into Pi's editor. Speech-to-text runs on your own CPU
|
|
17
|
+
through sherpa-onnx Whisper (base multilingual int8) — no cloud, no API key, no account.
|
|
28
18
|
|
|
29
19
|
## Install
|
|
30
20
|
|
|
31
|
-
`rpiv-voice` is **opt-in** — it's not part of `/rpiv-setup` because the native deps (sherpa-onnx, decibri) are heavyweight. Install it directly:
|
|
32
|
-
|
|
33
21
|
```sh
|
|
34
22
|
pi install npm:@juicesharp/rpiv-voice
|
|
35
23
|
```
|
|
36
24
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Optional: localized UI
|
|
40
|
-
|
|
41
|
-
Install `@juicesharp/rpiv-i18n` alongside it to flip the overlay, status bar, and settings strings to your active locale:
|
|
25
|
+
Restart your Pi session.
|
|
42
26
|
|
|
43
|
-
|
|
44
|
-
pi install npm:@juicesharp/rpiv-i18n
|
|
45
|
-
```
|
|
27
|
+
## Quick start
|
|
46
28
|
|
|
47
|
-
`/
|
|
29
|
+
Type `/voice`. The first run downloads the Whisper model (~198 MB, ~157 MB on disk) into
|
|
30
|
+
`~/.pi/models/whisper-base/` with a progress splash; later runs open in about a second.
|
|
48
31
|
|
|
49
|
-
|
|
32
|
+
Then talk. Committed text appears as you finish phrases, with a dim trailing partial for
|
|
33
|
+
the sentence you are still speaking.
|
|
50
34
|
|
|
51
|
-
|
|
35
|
+

|
|
52
36
|
|
|
53
37
|
| Key | Action |
|
|
54
|
-
|
|
55
|
-
|
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `Enter` | Close the overlay and paste the transcript — committed text plus the dim partial |
|
|
40
|
+
| `Esc` | Close the overlay and paste nothing |
|
|
41
|
+
| `Space` | Pause / resume |
|
|
42
|
+
| `Tab` | Open the settings screen |
|
|
43
|
+
|
|
44
|
+
If you have remapped Pi's confirm/cancel keys, the overlay follows your remap.
|
|
45
|
+
|
|
46
|
+
## What you get
|
|
47
|
+
|
|
48
|
+
- **Audio never leaves your machine** — the only network call in the package is the
|
|
49
|
+
one-time model download from GitHub Releases. Decoding runs locally on the CPU. No API
|
|
50
|
+
key, no account, no telemetry.
|
|
51
|
+
- **You see the words before you commit them** — the still-open utterance is re-decoded
|
|
52
|
+
about once a second and rendered dim after the committed text, and `Enter` pastes both.
|
|
53
|
+
You never wait on a final decode.
|
|
54
|
+
- **Long monologues stay responsive** — pauses flush a segment, and a cap keeps a
|
|
55
|
+
non-stop stretch from stalling the transcript.
|
|
56
|
+
- **Built-in microphones work, not just headsets** — capture falls back to the device's
|
|
57
|
+
native sample rate when 16 kHz is refused.
|
|
58
|
+
- **Whisper's silence hallucinations get filtered** — a curated phrase set
|
|
59
|
+
("thanks for watching", "music", "applause", and non-English equivalents), a
|
|
60
|
+
repetition-loop detector, and an input-side energy floor. Toggle it off when you are
|
|
61
|
+
dictating single words.
|
|
62
|
+
- **Localized UI in nine languages** — `de`, `en`, `es`, `fr`, `pt`, `pt-BR`, `ru`, `uk`,
|
|
63
|
+
`zh`. With [`@juicesharp/rpiv-i18n`](https://www.npmjs.com/package/@juicesharp/rpiv-i18n)
|
|
64
|
+
installed, `/languages` flips the overlay strings without a restart; without it the
|
|
65
|
+
extension still loads, English-only.
|
|
67
66
|
|
|
68
67
|
## Configuration
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{
|
|
74
|
-
"hallucinationFilterEnabled": false
|
|
75
|
-
}
|
|
76
|
-
```
|
|
69
|
+
`/voice` needs no config file. Both settings are editable on the settings screen (`Tab`
|
|
70
|
+
from dictation, `Ctrl-S` to save, `Esc` to save silently and go back) and persist to
|
|
71
|
+
`~/.config/rpiv-voice/voice.json`:
|
|
77
72
|
|
|
78
|
-
|
|
|
79
|
-
|
|
80
|
-
| `hallucinationFilterEnabled` | `true` |
|
|
73
|
+
| Key | Default | Effect |
|
|
74
|
+
| --- | --- | --- |
|
|
75
|
+
| `hallucinationFilterEnabled` | `true` | Drops Whisper's silence artifacts and repetition loops |
|
|
76
|
+
| `equalizerEnabled` | `false` | Renders the live audio waveform under the transcript |
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
The file is written with mode `0600`.
|
|
83
79
|
|
|
84
|
-
The microphone is the OS default input
|
|
80
|
+
The microphone is the OS default input and the model is fixed — neither is selectable.
|
|
85
81
|
|
|
86
|
-
##
|
|
82
|
+
## Reference
|
|
87
83
|
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
- **Network only on first run** — to download the model. After that, `/voice` works offline.
|
|
84
|
+
- [Configuration](https://github.com/juicesharp/rpiv-mono/blob/main/packages/rpiv-voice/docs/configuration.md) — every key, the XDG path rules, file permissions, the diagnostic log, and how the recognition language is chosen.
|
|
85
|
+
- [Keys and screens](https://github.com/juicesharp/rpiv-mono/blob/main/packages/rpiv-voice/docs/keybindings.md) — the full key table for both screens, the remappable bindings, and exactly what `Enter` pastes and `Space` pauses.
|
|
86
|
+
- [Model install and platform support](https://github.com/juicesharp/rpiv-mono/blob/main/packages/rpiv-voice/docs/model.md) — the first-run pipeline, the files on disk, failure recovery, and the prebuilt-binary matrix.
|
|
92
87
|
|
|
93
88
|
## Requirements
|
|
94
89
|
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
90
|
+
- **Apple Silicon macOS, glibc Linux (x64 / arm64), or Windows x64.** Intel Macs are not
|
|
91
|
+
supported: the `decibri` capture library publishes no `darwin-x64` binary. Alpine/musl
|
|
92
|
+
is out for the same reason.
|
|
93
|
+
- **A microphone Pi is allowed to use.** On macOS, grant your terminal microphone access
|
|
94
|
+
under System Settings → Privacy & Security → Microphone.
|
|
95
|
+
- **`tar` with bzip2 support on `PATH`** — model extraction shells out to `tar -xjf`.
|
|
96
|
+
- **~650 MB free** during the first run — the archive and the unused fp32 weights are
|
|
97
|
+
only deleted after extraction finishes. Settles at ~157 MB.
|
|
98
|
+
- **Network access on the first run only.** After that, `/voice` is fully offline.
|
|
99
99
|
|
|
100
100
|
## Troubleshooting
|
|
101
101
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
110
|
-
|
|
102
|
+
- **`Microphone unavailable…` error notification** — the OS refused the input device.
|
|
103
|
+
Grant your terminal microphone permission, confirm an input device is connected, then
|
|
104
|
+
re-run `/voice`.
|
|
105
|
+
- **`/voice requires interactive mode`** — the command draws a TUI overlay and does
|
|
106
|
+
nothing in a non-interactive session. Run `/voice` from an interactive Pi session.
|
|
107
|
+
- **The transcript says "Thanks for watching"** — Whisper hallucinated on near-silence.
|
|
108
|
+
Speak closer to the microphone, and leave `hallucinationFilterEnabled` on.
|
|
109
|
+
- **A phrase silently failed to transcribe** — recognition errors are appended to
|
|
110
|
+
`~/.config/rpiv-voice/errors.log` rather than printed, because stderr would corrupt the
|
|
111
|
+
live overlay. Check there for the underlying sherpa-onnx error.
|
|
112
|
+
- **`/voice` is not found** — restart your Pi session after installing.
|
|
113
|
+
- **`STT model files were removed or corrupted…`** — the install directory was damaged
|
|
114
|
+
after a good download. It is wiped automatically; run `/voice` again to redownload.
|
|
115
|
+
|
|
116
|
+
## Related
|
|
117
|
+
|
|
118
|
+
- [`@juicesharp/rpiv-i18n`](https://www.npmjs.com/package/@juicesharp/rpiv-i18n) —
|
|
119
|
+
optional. Install it with `pi install npm:@juicesharp/rpiv-i18n` to localize the
|
|
120
|
+
overlay and enable `/languages`.
|
|
121
|
+
- [`@juicesharp/rpiv-pi`](https://www.npmjs.com/package/@juicesharp/rpiv-pi) — the
|
|
122
|
+
umbrella package and `/rpiv-setup`. It does not install `rpiv-voice`; this package is
|
|
123
|
+
opt-in and installed explicitly.
|
|
111
124
|
|
|
112
125
|
## License
|
|
113
126
|
|
|
114
|
-
[
|
|
115
|
-
[](https://opensource.org/licenses/MIT)
|
|
116
|
-
|
|
117
|
-
MIT — see [LICENSE](./LICENSE).
|
|
127
|
+
MIT — see [LICENSE](https://github.com/juicesharp/rpiv-mono/blob/main/packages/rpiv-voice/LICENSE).
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Configuration
|
|
2
|
+
|
|
3
|
+
Every setting `rpiv-voice` persists, where the file lives, how it is written, and which
|
|
4
|
+
parts of the overlay are deliberately not configurable.
|
|
5
|
+
|
|
6
|
+
## The config file
|
|
7
|
+
|
|
8
|
+
`rpiv-voice` runs with no config file at all. When you change a setting, it writes
|
|
9
|
+
`voice.json` under an XDG-aware config directory:
|
|
10
|
+
|
|
11
|
+
| `XDG_CONFIG_HOME` | Config file |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| unset, empty, or whitespace-only | `~/.config/rpiv-voice/voice.json` |
|
|
14
|
+
| an absolute path | `$XDG_CONFIG_HOME/rpiv-voice/voice.json` |
|
|
15
|
+
| `~` or `~/…` | tilde-expanded, then used as above |
|
|
16
|
+
| a relative path, or `~user/…` | ignored — falls back to `~/.config/rpiv-voice/voice.json` |
|
|
17
|
+
|
|
18
|
+
Reads have a one-way legacy fallback: if the XDG-resolved file does not exist, the loader
|
|
19
|
+
also looks at `~/.config/rpiv-voice/voice.json` regardless of `XDG_CONFIG_HOME`, so a
|
|
20
|
+
config written before you set the variable is still picked up. If the XDG file *does*
|
|
21
|
+
exist but is malformed, that result wins and there is no fallback — corruption is
|
|
22
|
+
surfaced, not masked.
|
|
23
|
+
|
|
24
|
+
Writes only ever go to the XDG-resolved path.
|
|
25
|
+
|
|
26
|
+
`XDG_CONFIG_HOME` is the only environment variable this package reads. It relocates
|
|
27
|
+
`voice.json` and nothing else — not the error log, not the model directory.
|
|
28
|
+
|
|
29
|
+
## Keys
|
|
30
|
+
|
|
31
|
+
| Key | Type | Default | Effect |
|
|
32
|
+
| --- | --- | --- | --- |
|
|
33
|
+
| `hallucinationFilterEnabled` | boolean | `true` | Drops Whisper's silence artifacts and repetition loops. Turn it off when you are dictating single words the filter might mistake for noise |
|
|
34
|
+
| `equalizerEnabled` | boolean | `false` | Renders the live audio waveform lattice under the transcript |
|
|
35
|
+
|
|
36
|
+
There are no other keys. A hand-written file looks like this:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"hallucinationFilterEnabled": false,
|
|
41
|
+
"equalizerEnabled": true
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Only non-default values are persisted — the filter key lands on disk only when it is
|
|
46
|
+
`false`, the equalizer key only when it is `true`. A default-settings install therefore
|
|
47
|
+
writes `{}`, and an absent key always means "the default", never "unset".
|
|
48
|
+
|
|
49
|
+
## The settings screen
|
|
50
|
+
|
|
51
|
+
`Tab` from dictation opens a four-row panel:
|
|
52
|
+
|
|
53
|
+
| Row | Kind | Value |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| Microphone | read-only | `System default input` |
|
|
56
|
+
| Language | read-only | the endonym of your active locale (`Deutsch`, `Русский`, `中文`, …) or `Auto-detect`. Hint: `Run /languages to change.` |
|
|
57
|
+
| Filter Whisper noise | toggle | `[ on ]` / `[ off ]` — writes `hallucinationFilterEnabled` |
|
|
58
|
+
| Equalizer | toggle | `[ on ]` / `[ off ]` — writes `equalizerEnabled` |
|
|
59
|
+
|
|
60
|
+
Only the two toggles take focus. `Ctrl-S` saves and confirms; `Esc` and `Tab` save
|
|
61
|
+
silently on the way out. See [keybindings.md](./keybindings.md) for the full key table.
|
|
62
|
+
|
|
63
|
+
The filter toggle takes effect immediately in the running session. The equalizer toggle
|
|
64
|
+
is view-only and appears under the transcript as soon as you flip back.
|
|
65
|
+
|
|
66
|
+
## File handling
|
|
67
|
+
|
|
68
|
+
The config file is written with mode `0600` — readable and writable by you only. The
|
|
69
|
+
`chmod` is best-effort: filesystems that ignore permissions (tmpfs, network mounts,
|
|
70
|
+
Windows) do not fail the save. Parent directories are created as needed.
|
|
71
|
+
|
|
72
|
+
Loading is crash-resistant. A missing file, malformed JSON, or JSON that is not a plain
|
|
73
|
+
object (an array, a number, a string, `null`) all resolve to defaults. Malformed JSON
|
|
74
|
+
additionally prints a one-line warning naming the path.
|
|
75
|
+
|
|
76
|
+
Saving is not silently optimistic: if the write fails, the overlay tells you
|
|
77
|
+
`Failed to save voice settings — change not persisted` instead of claiming success.
|
|
78
|
+
|
|
79
|
+
## Diagnostic log
|
|
80
|
+
|
|
81
|
+
Recognition failures and microphone-path breadcrumbs append to:
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
~/.config/rpiv-voice/errors.log
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
That path is hardcoded — unlike `voice.json`, it does **not** move when you set
|
|
88
|
+
`XDG_CONFIG_HOME`. One line per event, ISO timestamp first:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
2026-03-04T09:12:44.118Z [stt.recognize] Error: <sherpa-onnx message>
|
|
92
|
+
2026-03-04T09:12:40.902Z [mic.path] resample-rms@48000Hz
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
| Scope | Meaning |
|
|
96
|
+
| --- | --- |
|
|
97
|
+
| `stt.recognize` | A final segment failed to decode. The transcript skips it |
|
|
98
|
+
| `stt.recognize.partial` | A rolling partial decode failed. Harmless — the next one retries |
|
|
99
|
+
| `mic.path` | Which capture strategy won at startup, and why the first one was refused |
|
|
100
|
+
|
|
101
|
+
Writes to this log are best-effort and never throw. The dictation pipeline cannot write
|
|
102
|
+
to stderr without corrupting the live TUI render, so the file is the only breadcrumb
|
|
103
|
+
trail — check it first when a phrase silently fails to transcribe.
|
|
104
|
+
|
|
105
|
+
## What is not configurable
|
|
106
|
+
|
|
107
|
+
- **Microphone.** `/voice` uses the OS default input device. There is no device picker
|
|
108
|
+
and no config key for one.
|
|
109
|
+
- **Model.** The bundled Whisper base multilingual int8 model is the only option; the
|
|
110
|
+
file names are fixed. See [model.md](./model.md).
|
|
111
|
+
- **Recognition language.** It is derived from your active i18n locale at the moment
|
|
112
|
+
`/voice` starts, and is fixed for that session — see below.
|
|
113
|
+
- **Command flags.** `/voice` ignores any arguments you type after it.
|
|
114
|
+
|
|
115
|
+
## How the recognition language is chosen
|
|
116
|
+
|
|
117
|
+
When `@juicesharp/rpiv-i18n` is installed and your active locale's base code is one of
|
|
118
|
+
`de`, `en`, `es`, `fr`, `it`, `ja`, `pt`, `ru`, `uk`, `zh`, the engine is built with that
|
|
119
|
+
language as a fixed hint. This is more accurate than auto-detection and skips the
|
|
120
|
+
first-utterance detection delay, but it also means the language is baked in for the
|
|
121
|
+
session: switching locale mid-session does not re-target recognition. Exit the overlay
|
|
122
|
+
and run `/voice` again.
|
|
123
|
+
|
|
124
|
+
With no locale active, or a locale outside that list, the engine falls back to Whisper's
|
|
125
|
+
built-in per-utterance auto-detect across the full multilingual model.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Keys and screens
|
|
2
|
+
|
|
3
|
+
Every key the `/voice` overlay reacts to, on both of its screens, and what the footer
|
|
4
|
+
hint line is telling you at the time.
|
|
5
|
+
|
|
6
|
+
## The two screens
|
|
7
|
+
|
|
8
|
+
`/voice` opens on the **dictation** screen. `Tab` flips to the **settings** screen and
|
|
9
|
+
`Tab` (or `Esc`) flips back. The overlay stays open across the flip — the microphone
|
|
10
|
+
keeps running and the session timer keeps counting while you are in settings.
|
|
11
|
+
|
|
12
|
+
## Dictation screen
|
|
13
|
+
|
|
14
|
+
| Key | Action |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| `Enter` | Close the overlay and paste the transcript into Pi's editor |
|
|
17
|
+
| `Esc` | Close the overlay and paste nothing |
|
|
18
|
+
| `Space` | Pause / resume |
|
|
19
|
+
| `Tab` | Open the settings screen |
|
|
20
|
+
|
|
21
|
+
Footer: `Enter to paste · Space to pause · Tab for settings · Esc to cancel`. The second
|
|
22
|
+
hint reads `Space to resume` while you are paused.
|
|
23
|
+
|
|
24
|
+
Any other keystroke is ignored — there is no text input on this screen.
|
|
25
|
+
|
|
26
|
+
## Settings screen
|
|
27
|
+
|
|
28
|
+
| Key | Action |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `↑` / `↓` | Move focus between the two toggles. Wraps at both ends |
|
|
31
|
+
| `Enter` | Toggle the focused setting |
|
|
32
|
+
| `Ctrl-S` | Save to disk and confirm with a `Voice settings saved` notification |
|
|
33
|
+
| `Esc` | Return to dictation |
|
|
34
|
+
| `Tab` | Return to dictation |
|
|
35
|
+
|
|
36
|
+
Footer: `↑↓ to select · Enter to toggle · Ctrl-S to save · Esc to go back`.
|
|
37
|
+
|
|
38
|
+
Focus starts on **Filter Whisper noise** and cycles between it and **Equalizer**. The
|
|
39
|
+
**Microphone** and **Language** rows are read-only and are skipped by focus.
|
|
40
|
+
|
|
41
|
+
`Esc` and `Tab` persist your changes silently on the way out, so a
|
|
42
|
+
toggle-then-leave flow never loses the change. `Ctrl-S` is the explicit path that also
|
|
43
|
+
tells you it worked — and only tells you when the disk write actually succeeded. If the
|
|
44
|
+
write fails, either path notifies
|
|
45
|
+
`Failed to save voice settings — change not persisted` at error level.
|
|
46
|
+
|
|
47
|
+
## `Enter` and `Esc` follow your Pi keybindings
|
|
48
|
+
|
|
49
|
+
Confirm and cancel are not hardcoded. They route through Pi's configurable keybinding
|
|
50
|
+
names:
|
|
51
|
+
|
|
52
|
+
| Binding name | Pi default | Dictation | Settings |
|
|
53
|
+
| --- | --- | --- | --- |
|
|
54
|
+
| `tui.select.confirm` | `Enter` | Paste and close | Toggle focused setting |
|
|
55
|
+
| `tui.select.cancel` | `Esc` / `Ctrl-C` | Cancel and close | Return to dictation |
|
|
56
|
+
|
|
57
|
+
If you have remapped either binding, `/voice` follows the remap — your cancel key still
|
|
58
|
+
cancels, and the footer hints still say `Enter` / `Esc` because they are static labels.
|
|
59
|
+
|
|
60
|
+
`↑`, `↓`, `Tab`, `Space` and `Ctrl-S` are hardcoded and are not affected by Pi
|
|
61
|
+
keybindings — remapping `tui.select.up` / `tui.select.down` does not move settings focus.
|
|
62
|
+
|
|
63
|
+
## What `Enter` actually pastes
|
|
64
|
+
|
|
65
|
+
The transcript has two parts on screen: committed text, and a dim trailing partial. The
|
|
66
|
+
partial is a rolling re-decode of the utterance you are still speaking, refreshed about
|
|
67
|
+
once a second.
|
|
68
|
+
|
|
69
|
+
`Enter` pastes **both**, joined with a space. That is deliberate — waiting for a final
|
|
70
|
+
decode of the open utterance would add half a second to two seconds between your
|
|
71
|
+
keypress and the paste, and the partial is already a complete Whisper reading of that
|
|
72
|
+
audio. So you can press `Enter` the moment you stop talking.
|
|
73
|
+
|
|
74
|
+
`Esc` discards everything, committed and partial alike. Nothing reaches the editor.
|
|
75
|
+
|
|
76
|
+
## What `Space` actually pauses
|
|
77
|
+
|
|
78
|
+
`Space` gates the speech-to-text pipeline, not the microphone. Audio keeps streaming, so
|
|
79
|
+
the level meter behind the equalizer stays live, but no audio is buffered for
|
|
80
|
+
recognition and no new text appears. The session timer stops accumulating and picks up
|
|
81
|
+
where it left off when you resume.
|
|
82
|
+
|
|
83
|
+
The equalizer, if you have turned it on, freezes and dims while paused instead of
|
|
84
|
+
animating against silence.
|
package/docs/model.md
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Model install and platform support
|
|
2
|
+
|
|
3
|
+
What the first `/voice` downloads, where it puts it, what your machine needs for that to
|
|
4
|
+
work, and how a broken install recovers.
|
|
5
|
+
|
|
6
|
+
## First run
|
|
7
|
+
|
|
8
|
+
The first time you run `/voice`, a splash overlay walks through the install before the
|
|
9
|
+
dictation screen opens:
|
|
10
|
+
|
|
11
|
+
| Phase | What you see |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Download | `Downloading Whisper… 43% (85.2 MB / 198.1 MB)` — percent and byte counter, or a bare byte counter if the server sends no `Content-Length` |
|
|
14
|
+
| Extract | `Extracting model files…` |
|
|
15
|
+
| Verify | `Verifying model files…` |
|
|
16
|
+
| Load | `Loading speech model…` |
|
|
17
|
+
| Microphone | `Initializing microphone…` |
|
|
18
|
+
|
|
19
|
+
Every later run skips straight to `Loading speech model…`.
|
|
20
|
+
|
|
21
|
+
## What gets downloaded
|
|
22
|
+
|
|
23
|
+
One archive, from the sherpa-onnx project's GitHub release assets:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-whisper-base.tar.bz2
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This is the only outbound request the package makes. There is no telemetry, no analytics,
|
|
30
|
+
and no other network call anywhere in the code. After the model is on disk, `/voice`
|
|
31
|
+
works fully offline.
|
|
32
|
+
|
|
33
|
+
## Where it lands
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
~/.pi/models/whisper-base/
|
|
37
|
+
├── base-encoder.int8.onnx
|
|
38
|
+
├── base-decoder.int8.onnx
|
|
39
|
+
├── base-tokens.txt
|
|
40
|
+
└── .download-complete
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
That path is hardcoded. `XDG_CONFIG_HOME` and `PI_CODING_AGENT_DIR` do not move it.
|
|
44
|
+
|
|
45
|
+
The upstream archive ships fp32 and int8 weights side by side. `/voice` runs int8 on the
|
|
46
|
+
CPU, so `base-encoder.onnx` and `base-decoder.onnx` are deleted right after extraction.
|
|
47
|
+
The archive itself is deleted too.
|
|
48
|
+
|
|
49
|
+
| Measurement | Size |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| Archive on the wire | ~198 MB |
|
|
52
|
+
| On disk after pruning | ~157 MB |
|
|
53
|
+
|
|
54
|
+
Peak transient usage is far higher than the final figure. The archive is deleted only
|
|
55
|
+
after extraction finishes, and the fp32 weights are pruned only after that — so at the
|
|
56
|
+
peak the archive (~198 MB), the fp32 pair (~290 MB) and the int8 pair (~155 MB) all sit
|
|
57
|
+
in the directory at once. Budget ~650 MB of free space for the first run.
|
|
58
|
+
|
|
59
|
+
`.download-complete` is the sentinel: its presence is what makes later runs skip the
|
|
60
|
+
download entirely.
|
|
61
|
+
|
|
62
|
+
## Recovery from a broken install
|
|
63
|
+
|
|
64
|
+
The download, extract and verify stages report distinct failures rather than collapsing
|
|
65
|
+
into one message:
|
|
66
|
+
|
|
67
|
+
| Failure | Message |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| Fetch or HTTP error | `Failed to download STT model. Check your internet connection.` |
|
|
70
|
+
| `tar` failed | `Downloaded STT model archive is corrupt. Please retry.` |
|
|
71
|
+
| A required file is missing after extract | `STT model files are incomplete after download. Please retry.` |
|
|
72
|
+
| A required file disappeared after a previously good install | `STT model files were removed or corrupted. They will be redownloaded on next launch.` |
|
|
73
|
+
| The recognizer refused to load | `Failed to load STT model.` |
|
|
74
|
+
|
|
75
|
+
Any install failure wipes `~/.pi/models/whisper-base/` before surfacing, so a retry always
|
|
76
|
+
starts from a clean slate rather than resuming a half-extracted directory.
|
|
77
|
+
|
|
78
|
+
The sentinel only proves a *past* run finished. Before loading the engine, `/voice`
|
|
79
|
+
re-checks that the three required files still exist — if something deleted one of them,
|
|
80
|
+
the directory is wiped and the next launch redownloads, instead of crashing inside the
|
|
81
|
+
native recognizer.
|
|
82
|
+
|
|
83
|
+
## System requirements
|
|
84
|
+
|
|
85
|
+
**`tar` with bzip2 support.** Extraction shells out to
|
|
86
|
+
`tar -xjf <archive> -C <dir> --strip-components=1`. You need a `tar` on `PATH` that
|
|
87
|
+
supports `-j` and GNU-style `--strip-components`. There is no JavaScript fallback. The
|
|
88
|
+
system `tar` on macOS, mainstream Linux distributions and Windows 10+ qualifies.
|
|
89
|
+
|
|
90
|
+
**A microphone the OS will hand to your terminal.** On macOS that means granting your
|
|
91
|
+
terminal application microphone access under System Settings → Privacy & Security →
|
|
92
|
+
Microphone. Without it, preflight stops at
|
|
93
|
+
`Microphone unavailable. Check that an input device is connected and that Pi has
|
|
94
|
+
microphone permission.`
|
|
95
|
+
|
|
96
|
+
**An interactive Pi session.** `/voice` draws a TUI overlay; in a non-interactive context
|
|
97
|
+
it reports `/voice requires interactive mode` and exits.
|
|
98
|
+
|
|
99
|
+
## Platforms
|
|
100
|
+
|
|
101
|
+
Both native dependencies ship prebuilt binaries. The intersection is what actually runs:
|
|
102
|
+
|
|
103
|
+
| Platform | `sherpa-onnx-node` | `decibri` | `/voice` |
|
|
104
|
+
| --- | --- | --- | --- |
|
|
105
|
+
| macOS Apple Silicon (arm64) | yes | yes | yes |
|
|
106
|
+
| macOS Intel (x64) | yes | **no** | no |
|
|
107
|
+
| Linux x64, glibc | yes | yes | yes |
|
|
108
|
+
| Linux arm64, glibc | yes | yes | yes |
|
|
109
|
+
| Linux musl (Alpine) | no | no | no |
|
|
110
|
+
| Windows x64 | yes | yes | yes |
|
|
111
|
+
| Windows ia32 | yes | no | no |
|
|
112
|
+
|
|
113
|
+
The gap that catches people is Intel Macs: `decibri` publishes no `darwin-x64` binary, so
|
|
114
|
+
microphone capture has nothing to load there even though the speech engine would run.
|
|
115
|
+
|
|
116
|
+
Linux builds link against glibc — there is no musl variant, so Alpine-based images are
|
|
117
|
+
out.
|
|
118
|
+
|
|
119
|
+
`decibri` requires Node 18 or newer.
|
|
120
|
+
|
|
121
|
+
## Microphone capture strategies
|
|
122
|
+
|
|
123
|
+
Capture is negotiated at startup, and which strategy won is recorded in
|
|
124
|
+
`~/.config/rpiv-voice/errors.log` under the `mic.path` scope:
|
|
125
|
+
|
|
126
|
+
1. **`silero-passthrough@16000Hz`** — 16 kHz capture with decibri's bundled Silero VAD.
|
|
127
|
+
Preferred: Silero's ML-based voice detection handles noisy rooms considerably better
|
|
128
|
+
than an energy threshold. Works on USB headsets, AirPods and most external mics.
|
|
129
|
+
2. **`resample-rms@<rate>Hz`** — if the device refuses 16 kHz (macOS built-in
|
|
130
|
+
microphones commonly do), capture reopens at the device's native rate — 48 kHz,
|
|
131
|
+
then 44.1 kHz, then 96 kHz — resamples to 16 kHz in JavaScript, and substitutes an
|
|
132
|
+
RMS-energy gate for Silero, which only accepts 8 or 16 kHz input.
|
|
133
|
+
|
|
134
|
+
Both strategies use a 500 ms hangover before declaring silence, which covers a natural
|
|
135
|
+
breath pause without flushing mid-clause. Segments are additionally force-flushed at a
|
|
136
|
+
12-second cap; the cut point is the lowest-energy chunk in the trailing 800 ms, so long
|
|
137
|
+
monologues split mid-breath rather than mid-syllable.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-voice",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Pi extension. Voice dictation via /voice — local on-device STT with sherpa-onnx Whisper (base multilingual int8), microphone capture via decibri.",
|
|
6
6
|
"keywords": [
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
"view/stateful-view.ts",
|
|
70
70
|
"locales/",
|
|
71
71
|
"docs/",
|
|
72
|
+
"!docs/*.png",
|
|
73
|
+
"!docs/*.jpg",
|
|
74
|
+
"!docs/*.svg",
|
|
72
75
|
"README.md",
|
|
73
76
|
"CHANGELOG.md",
|
|
74
77
|
"LICENSE"
|
|
@@ -79,7 +82,7 @@
|
|
|
79
82
|
]
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|
|
82
|
-
"@juicesharp/rpiv-config": "^2.
|
|
85
|
+
"@juicesharp/rpiv-config": "^2.2.0",
|
|
83
86
|
"sherpa-onnx-node": "^1.13.0",
|
|
84
87
|
"decibri": "^3.4.0"
|
|
85
88
|
},
|
package/docs/cover.png
DELETED
|
Binary file
|
package/docs/cover.svg
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 800" role="img" aria-label="rpiv-voice — Local voice dictation overlay for Pi" preserveAspectRatio="xMidYMid meet">
|
|
2
|
-
<title>rpiv-voice — Local voice dictation overlay for Pi</title>
|
|
3
|
-
<defs>
|
|
4
|
-
<style>
|
|
5
|
-
.mono { font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
|
6
|
-
.serif { font-family: 'Iowan Old Style', 'Hoefler Text', Charter, 'Source Serif Pro', Georgia, serif; }
|
|
7
|
-
.ink { fill: #ede6d3; }
|
|
8
|
-
.text-quiet { fill: #a8a29e; }
|
|
9
|
-
.text-distant { fill: #9c968d; }
|
|
10
|
-
.ochre { fill: #a8896c; }
|
|
11
|
-
.sage { fill: #8a9580; }
|
|
12
|
-
.alert { fill: #b04a3a; }
|
|
13
|
-
.fade { fill: #6b6560; }
|
|
14
|
-
</style>
|
|
15
|
-
<radialGradient id="wash-ochre" cx="25%" cy="10%" r="65%">
|
|
16
|
-
<stop offset="0%" stop-color="#a8896c" stop-opacity="0.10"/>
|
|
17
|
-
<stop offset="100%" stop-color="#a8896c" stop-opacity="0"/>
|
|
18
|
-
</radialGradient>
|
|
19
|
-
<radialGradient id="wash-sage" cx="85%" cy="90%" r="55%">
|
|
20
|
-
<stop offset="0%" stop-color="#8a9580" stop-opacity="0.07"/>
|
|
21
|
-
<stop offset="100%" stop-color="#8a9580" stop-opacity="0"/>
|
|
22
|
-
</radialGradient>
|
|
23
|
-
|
|
24
|
-
<linearGradient id="eqFade" x1="0" x2="1" y1="0" y2="0">
|
|
25
|
-
<stop offset="0%" stop-color="#8a9580" stop-opacity="0.05"/>
|
|
26
|
-
<stop offset="50%" stop-color="#8a9580" stop-opacity="0.90"/>
|
|
27
|
-
<stop offset="100%" stop-color="#8a9580" stop-opacity="0.05"/>
|
|
28
|
-
</linearGradient>
|
|
29
|
-
<radialGradient id="recPulse" cx="50%" cy="50%" r="50%">
|
|
30
|
-
<stop offset="0%" stop-color="#b04a3a" stop-opacity="0.40"/>
|
|
31
|
-
<stop offset="100%" stop-color="#b04a3a" stop-opacity="0"/>
|
|
32
|
-
</radialGradient>
|
|
33
|
-
</defs>
|
|
34
|
-
|
|
35
|
-
<rect width="1280" height="800" fill="#1c1a17"/>
|
|
36
|
-
<rect width="1280" height="800" fill="url(#wash-ochre)"/>
|
|
37
|
-
<rect width="1280" height="800" fill="url(#wash-sage)"/>
|
|
38
|
-
|
|
39
|
-
<g fill="none" stroke="#8a9580" stroke-linecap="round" opacity="0.45">
|
|
40
|
-
<path d="M1120 60 q36 -52 88 -60 q40 -5 68 14" stroke-width="1.1"/>
|
|
41
|
-
<path d="M1140 80 q28 -18 60 -14 q24 3 42 14" stroke-width="0.7" opacity="0.6"/>
|
|
42
|
-
<circle cx="1210" cy="32" r="2" opacity="0.5"/>
|
|
43
|
-
<circle cx="1160" cy="60" r="1.4" opacity="0.4"/>
|
|
44
|
-
</g>
|
|
45
|
-
|
|
46
|
-
<text class="mono text-distant" x="80" y="64" font-size="11" letter-spacing="0.18em">PI AGENT EXTENSION</text>
|
|
47
|
-
|
|
48
|
-
<text class="serif ink" x="80" y="152" font-size="80" font-weight="700" letter-spacing="-2.5">rpiv<tspan class="ochre">-</tspan>voice</text>
|
|
49
|
-
<text class="mono text-quiet" x="80" y="196" font-size="19" letter-spacing="0.2">Local voice dictation overlay for Pi.</text>
|
|
50
|
-
|
|
51
|
-
<line x1="80" y1="228" x2="1200" y2="228" stroke="#2e2b27" stroke-width="1"/>
|
|
52
|
-
|
|
53
|
-
<rect x="80" y="264" width="1120" height="440" rx="3" fill="#1c1a17" stroke="#3a3631" stroke-width="1"/>
|
|
54
|
-
|
|
55
|
-
<!-- Section label -->
|
|
56
|
-
<text class="mono text-distant" x="120" y="300" font-size="12" letter-spacing="0.2em">/VOICE — LIVE TRANSCRIPT</text>
|
|
57
|
-
|
|
58
|
-
<!-- Live transcript -->
|
|
59
|
-
<text class="mono ink" x="120" y="356" font-size="28">Refactor the splash runner so download progress shows</text>
|
|
60
|
-
<text class="mono ink" x="120" y="396" font-size="28">percent and bytes on a single line, then keep the same</text>
|
|
61
|
-
<text class="mono ink" x="120" y="436" font-size="28">format for extracting and verifying.</text>
|
|
62
|
-
<text class="mono fade" x="120" y="476" font-size="28">Add a unit test that asserts the whisper hallucination…</text>
|
|
63
|
-
|
|
64
|
-
<line x1="120" y1="508" x2="1160" y2="508" stroke="#8a9580" stroke-opacity="0.55" stroke-width="1"/>
|
|
65
|
-
|
|
66
|
-
<!-- Equalizer -->
|
|
67
|
-
<g transform="translate(120 530)" fill="url(#eqFade)">
|
|
68
|
-
<rect x="0" y="34" rx="2" width="8" height="6"/>
|
|
69
|
-
<rect x="14" y="30" rx="2" width="8" height="14"/>
|
|
70
|
-
<rect x="28" y="20" rx="2" width="8" height="34"/>
|
|
71
|
-
<rect x="42" y="26" rx="2" width="8" height="22"/>
|
|
72
|
-
<rect x="56" y="16" rx="2" width="8" height="42"/>
|
|
73
|
-
<rect x="70" y="22" rx="2" width="8" height="30"/>
|
|
74
|
-
<rect x="84" y="10" rx="2" width="8" height="54"/>
|
|
75
|
-
<rect x="98" y="18" rx="2" width="8" height="38"/>
|
|
76
|
-
<rect x="112" y="6" rx="2" width="8" height="62"/>
|
|
77
|
-
<rect x="126" y="14" rx="2" width="8" height="46"/>
|
|
78
|
-
<rect x="140" y="20" rx="2" width="8" height="34"/>
|
|
79
|
-
<rect x="154" y="12" rx="2" width="8" height="50"/>
|
|
80
|
-
<rect x="168" y="18" rx="2" width="8" height="38"/>
|
|
81
|
-
<rect x="182" y="8" rx="2" width="8" height="58"/>
|
|
82
|
-
<rect x="196" y="14" rx="2" width="8" height="46"/>
|
|
83
|
-
<rect x="210" y="4" rx="2" width="8" height="66"/>
|
|
84
|
-
<rect x="224" y="12" rx="2" width="8" height="50"/>
|
|
85
|
-
<rect x="238" y="20" rx="2" width="8" height="34"/>
|
|
86
|
-
<rect x="252" y="10" rx="2" width="8" height="54"/>
|
|
87
|
-
<rect x="266" y="16" rx="2" width="8" height="42"/>
|
|
88
|
-
<rect x="280" y="4" rx="2" width="8" height="66"/>
|
|
89
|
-
<rect x="294" y="14" rx="2" width="8" height="46"/>
|
|
90
|
-
<rect x="308" y="22" rx="2" width="8" height="30"/>
|
|
91
|
-
<rect x="322" y="12" rx="2" width="8" height="50"/>
|
|
92
|
-
<rect x="336" y="18" rx="2" width="8" height="38"/>
|
|
93
|
-
<rect x="350" y="8" rx="2" width="8" height="58"/>
|
|
94
|
-
<rect x="364" y="14" rx="2" width="8" height="46"/>
|
|
95
|
-
<rect x="378" y="20" rx="2" width="8" height="34"/>
|
|
96
|
-
<rect x="392" y="12" rx="2" width="8" height="50"/>
|
|
97
|
-
<rect x="406" y="24" rx="2" width="8" height="26"/>
|
|
98
|
-
<rect x="420" y="18" rx="2" width="8" height="38"/>
|
|
99
|
-
<rect x="434" y="12" rx="2" width="8" height="50"/>
|
|
100
|
-
<rect x="448" y="22" rx="2" width="8" height="30"/>
|
|
101
|
-
<rect x="462" y="16" rx="2" width="8" height="42"/>
|
|
102
|
-
<rect x="476" y="26" rx="2" width="8" height="22"/>
|
|
103
|
-
<rect x="490" y="20" rx="2" width="8" height="34"/>
|
|
104
|
-
<rect x="504" y="14" rx="2" width="8" height="46"/>
|
|
105
|
-
<rect x="518" y="24" rx="2" width="8" height="26"/>
|
|
106
|
-
<rect x="532" y="18" rx="2" width="8" height="38"/>
|
|
107
|
-
<rect x="546" y="28" rx="2" width="8" height="18"/>
|
|
108
|
-
<rect x="560" y="22" rx="2" width="8" height="30"/>
|
|
109
|
-
<rect x="574" y="32" rx="2" width="8" height="10"/>
|
|
110
|
-
<rect x="588" y="24" rx="2" width="8" height="26"/>
|
|
111
|
-
<rect x="602" y="34" rx="2" width="8" height="6"/>
|
|
112
|
-
<rect x="616" y="28" rx="2" width="8" height="18"/>
|
|
113
|
-
<rect x="630" y="36" rx="2" width="8" height="4"/>
|
|
114
|
-
<rect x="644" y="32" rx="2" width="8" height="10"/>
|
|
115
|
-
<rect x="658" y="36" rx="2" width="8" height="4"/>
|
|
116
|
-
<rect x="672" y="34" rx="2" width="8" height="6"/>
|
|
117
|
-
<rect x="686" y="36" rx="2" width="8" height="4"/>
|
|
118
|
-
<rect x="700" y="36" rx="2" width="8" height="4"/>
|
|
119
|
-
<rect x="714" y="36" rx="2" width="8" height="4"/>
|
|
120
|
-
<rect x="728" y="36" rx="2" width="8" height="4"/>
|
|
121
|
-
<rect x="742" y="36" rx="2" width="8" height="4"/>
|
|
122
|
-
<rect x="756" y="36" rx="2" width="8" height="4"/>
|
|
123
|
-
<rect x="770" y="36" rx="2" width="8" height="4"/>
|
|
124
|
-
<rect x="784" y="36" rx="2" width="8" height="4"/>
|
|
125
|
-
<rect x="798" y="36" rx="2" width="8" height="4"/>
|
|
126
|
-
<rect x="812" y="36" rx="2" width="8" height="4"/>
|
|
127
|
-
<rect x="826" y="36" rx="2" width="8" height="4"/>
|
|
128
|
-
<rect x="840" y="36" rx="2" width="8" height="4"/>
|
|
129
|
-
<rect x="854" y="36" rx="2" width="8" height="4"/>
|
|
130
|
-
</g>
|
|
131
|
-
|
|
132
|
-
<!-- Status row -->
|
|
133
|
-
<circle cx="138" cy="640" r="18" fill="url(#recPulse)"/>
|
|
134
|
-
<text class="alert mono" x="122" y="646" font-size="22">●</text>
|
|
135
|
-
<text class="mono" font-size="18" y="644">
|
|
136
|
-
<tspan x="158" class="text-quiet" font-weight="700">0:14</tspan>
|
|
137
|
-
<tspan dx="12" class="text-distant">·</tspan>
|
|
138
|
-
<tspan dx="12" class="ink" font-weight="700">Enter</tspan>
|
|
139
|
-
<tspan dx="8" class="text-quiet">to paste</tspan>
|
|
140
|
-
<tspan dx="12" class="text-distant">·</tspan>
|
|
141
|
-
<tspan dx="12" class="ink" font-weight="700">Space</tspan>
|
|
142
|
-
<tspan dx="8" class="text-quiet">to pause</tspan>
|
|
143
|
-
<tspan dx="12" class="text-distant">·</tspan>
|
|
144
|
-
<tspan dx="12" class="ink" font-weight="700">Tab</tspan>
|
|
145
|
-
<tspan dx="8" class="text-quiet">for settings</tspan>
|
|
146
|
-
<tspan dx="12" class="text-distant">·</tspan>
|
|
147
|
-
<tspan dx="12" class="ink" font-weight="700">Esc</tspan>
|
|
148
|
-
<tspan dx="8" class="text-quiet">to cancel</tspan>
|
|
149
|
-
</text>
|
|
150
|
-
|
|
151
|
-
<text class="mono text-distant" x="120" y="688" font-size="12" letter-spacing="0.15em">100% ON-DEVICE · WHISPER MULTILINGUAL · ~99 LANGUAGES · NO CLOUD</text>
|
|
152
|
-
|
|
153
|
-
<line x1="80" y1="740" x2="1200" y2="740" stroke="#2e2b27" stroke-width="1"/>
|
|
154
|
-
|
|
155
|
-
<text class="mono text-distant" x="80" y="776" font-size="12" letter-spacing="0.12em">
|
|
156
|
-
<tspan class="ochre" font-weight="700">▌ rpiv-voice</tspan>
|
|
157
|
-
<tspan dx="12">│</tspan>
|
|
158
|
-
<tspan dx="12" class="sage">on-device STT</tspan>
|
|
159
|
-
<tspan dx="12">│</tspan>
|
|
160
|
-
<tspan dx="12">npm:@juicesharp/rpiv-voice</tspan>
|
|
161
|
-
</text>
|
|
162
|
-
</svg>
|
package/docs/equalizer.svg
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1028 80" role="img" aria-label="rpiv-voice live audio equalizer" preserveAspectRatio="xMidYMid meet">
|
|
2
|
-
<title>rpiv-voice live audio equalizer</title>
|
|
3
|
-
<defs>
|
|
4
|
-
<linearGradient id="eqFade" x1="0" x2="1" y1="0" y2="0">
|
|
5
|
-
<stop offset="0%" stop-color="#6FD0B8" stop-opacity="0.05"/>
|
|
6
|
-
<stop offset="50%" stop-color="#6FD0B8" stop-opacity="0.95"/>
|
|
7
|
-
<stop offset="100%" stop-color="#6FD0B8" stop-opacity="0.05"/>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
</defs>
|
|
10
|
-
<g fill="url(#eqFade)">
|
|
11
|
-
<rect x="0" y="39" width="6" height="2" rx="3"/>
|
|
12
|
-
<rect x="14" y="39" width="6" height="2" rx="3"/>
|
|
13
|
-
<rect x="28" y="39" width="6" height="2" rx="3"/>
|
|
14
|
-
<rect x="42" y="39" width="6" height="2" rx="3"/>
|
|
15
|
-
<rect x="56" y="39" width="6" height="2" rx="3"/>
|
|
16
|
-
<rect x="70" y="37" width="6" height="6" rx="3"/>
|
|
17
|
-
<rect x="84" y="36" width="6" height="8" rx="3"/>
|
|
18
|
-
<rect x="98" y="33" width="6" height="14" rx="3"/>
|
|
19
|
-
<rect x="112" y="29" width="6" height="22" rx="3"/>
|
|
20
|
-
<rect x="126" y="30" width="6" height="20" rx="3"/>
|
|
21
|
-
<rect x="140" y="27" width="6" height="26" rx="3"/>
|
|
22
|
-
<rect x="154" y="28" width="6" height="24" rx="3"/>
|
|
23
|
-
<rect x="168" y="18" width="6" height="44" rx="3"/>
|
|
24
|
-
<rect x="182" y="19" width="6" height="42" rx="3"/>
|
|
25
|
-
<rect x="196" y="20" width="6" height="40" rx="3"/>
|
|
26
|
-
<rect x="210" y="17" width="6" height="46" rx="3"/>
|
|
27
|
-
<rect x="224" y="12" width="6" height="56" rx="3"/>
|
|
28
|
-
<rect x="238" y="8" width="6" height="64" rx="3"/>
|
|
29
|
-
<rect x="252" y="16" width="6" height="48" rx="3"/>
|
|
30
|
-
<rect x="266" y="13" width="6" height="54" rx="3"/>
|
|
31
|
-
<rect x="280" y="11" width="6" height="58" rx="3"/>
|
|
32
|
-
<rect x="294" y="7" width="6" height="66" rx="3"/>
|
|
33
|
-
<rect x="308" y="13" width="6" height="54" rx="3"/>
|
|
34
|
-
<rect x="322" y="11" width="6" height="58" rx="3"/>
|
|
35
|
-
<rect x="336" y="5" width="6" height="70" rx="3"/>
|
|
36
|
-
<rect x="350" y="19" width="6" height="42" rx="3"/>
|
|
37
|
-
<rect x="364" y="9" width="6" height="62" rx="3"/>
|
|
38
|
-
<rect x="378" y="16" width="6" height="48" rx="3"/>
|
|
39
|
-
<rect x="392" y="16" width="6" height="48" rx="3"/>
|
|
40
|
-
<rect x="406" y="9" width="6" height="62" rx="3"/>
|
|
41
|
-
<rect x="420" y="18" width="6" height="44" rx="3"/>
|
|
42
|
-
<rect x="434" y="17" width="6" height="46" rx="3"/>
|
|
43
|
-
<rect x="448" y="16" width="6" height="48" rx="3"/>
|
|
44
|
-
<rect x="462" y="9" width="6" height="62" rx="3"/>
|
|
45
|
-
<rect x="476" y="10" width="6" height="60" rx="3"/>
|
|
46
|
-
<rect x="490" y="12" width="6" height="56" rx="3"/>
|
|
47
|
-
<rect x="504" y="10" width="6" height="60" rx="3"/>
|
|
48
|
-
<rect x="518" y="20" width="6" height="40" rx="3"/>
|
|
49
|
-
<rect x="532" y="9" width="6" height="62" rx="3"/>
|
|
50
|
-
<rect x="546" y="11" width="6" height="58" rx="3"/>
|
|
51
|
-
<rect x="560" y="16" width="6" height="48" rx="3"/>
|
|
52
|
-
<rect x="574" y="14" width="6" height="52" rx="3"/>
|
|
53
|
-
<rect x="588" y="11" width="6" height="58" rx="3"/>
|
|
54
|
-
<rect x="602" y="16" width="6" height="48" rx="3"/>
|
|
55
|
-
<rect x="616" y="13" width="6" height="54" rx="3"/>
|
|
56
|
-
<rect x="630" y="13" width="6" height="54" rx="3"/>
|
|
57
|
-
<rect x="644" y="5" width="6" height="70" rx="3"/>
|
|
58
|
-
<rect x="658" y="8" width="6" height="64" rx="3"/>
|
|
59
|
-
<rect x="672" y="6" width="6" height="68" rx="3"/>
|
|
60
|
-
<rect x="686" y="7" width="6" height="66" rx="3"/>
|
|
61
|
-
<rect x="700" y="12" width="6" height="56" rx="3"/>
|
|
62
|
-
<rect x="714" y="16" width="6" height="48" rx="3"/>
|
|
63
|
-
<rect x="728" y="5" width="6" height="70" rx="3"/>
|
|
64
|
-
<rect x="742" y="14" width="6" height="52" rx="3"/>
|
|
65
|
-
<rect x="756" y="15" width="6" height="50" rx="3"/>
|
|
66
|
-
<rect x="770" y="18" width="6" height="44" rx="3"/>
|
|
67
|
-
<rect x="784" y="18" width="6" height="44" rx="3"/>
|
|
68
|
-
<rect x="798" y="13" width="6" height="54" rx="3"/>
|
|
69
|
-
<rect x="812" y="21" width="6" height="38" rx="3"/>
|
|
70
|
-
<rect x="826" y="15" width="6" height="50" rx="3"/>
|
|
71
|
-
<rect x="840" y="21" width="6" height="38" rx="3"/>
|
|
72
|
-
<rect x="854" y="20" width="6" height="40" rx="3"/>
|
|
73
|
-
<rect x="868" y="26" width="6" height="28" rx="3"/>
|
|
74
|
-
<rect x="882" y="26" width="6" height="28" rx="3"/>
|
|
75
|
-
<rect x="896" y="30" width="6" height="20" rx="3"/>
|
|
76
|
-
<rect x="910" y="32" width="6" height="16" rx="3"/>
|
|
77
|
-
<rect x="924" y="33" width="6" height="14" rx="3"/>
|
|
78
|
-
<rect x="938" y="35" width="6" height="10" rx="3"/>
|
|
79
|
-
<rect x="952" y="37" width="6" height="6" rx="3"/>
|
|
80
|
-
<rect x="966" y="39" width="6" height="2" rx="3"/>
|
|
81
|
-
<rect x="980" y="39" width="6" height="2" rx="3"/>
|
|
82
|
-
<rect x="994" y="39" width="6" height="2" rx="3"/>
|
|
83
|
-
<rect x="1008" y="39" width="6" height="2" rx="3"/>
|
|
84
|
-
<rect x="1022" y="39" width="6" height="2" rx="3"/>
|
|
85
|
-
</g>
|
|
86
|
-
</svg>
|
package/docs/overlay.jpg
DELETED
|
Binary file
|
package/docs/overlay.png
DELETED
|
Binary file
|
package/docs/vertical-cover.png
DELETED
|
Binary file
|
package/docs/vertical-cover.svg
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 540 1200" role="img" aria-label="rpiv-voice — Local voice dictation for Pi" preserveAspectRatio="xMidYMid meet">
|
|
2
|
-
<title>rpiv-voice — Local voice dictation for Pi</title>
|
|
3
|
-
<defs>
|
|
4
|
-
<style>
|
|
5
|
-
.mono { font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; }
|
|
6
|
-
.ink { fill: #F4EFE6; }
|
|
7
|
-
.paper { fill: #0E0D0B; }
|
|
8
|
-
.muted { fill: #7A7468; }
|
|
9
|
-
.dim { fill: #4A463F; }
|
|
10
|
-
.fade { fill: #6A645A; }
|
|
11
|
-
.accent { fill: #FF7A3D; }
|
|
12
|
-
.mint { fill: #6FD0B8; }
|
|
13
|
-
.rec { fill: #E5594E; }
|
|
14
|
-
.rule { stroke: #2A2620; }
|
|
15
|
-
.rule-bright { stroke: #FF7A3D; }
|
|
16
|
-
.rule-mint { stroke: #6FD0B8; }
|
|
17
|
-
</style>
|
|
18
|
-
<filter id="grain" x="0" y="0" width="100%" height="100%">
|
|
19
|
-
<feTurbulence type="fractalNoise" baseFrequency="1.4" numOctaves="2" seed="31"/>
|
|
20
|
-
<feColorMatrix values="0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.88 0 0 0 0.06 0"/>
|
|
21
|
-
</filter>
|
|
22
|
-
<pattern id="grid" width="32" height="32" patternUnits="userSpaceOnUse">
|
|
23
|
-
<path d="M32 0 H0 V32" fill="none" stroke="#161411" stroke-width="0.5"/>
|
|
24
|
-
</pattern>
|
|
25
|
-
<pattern id="dots" width="6" height="6" patternUnits="userSpaceOnUse">
|
|
26
|
-
<circle cx="3" cy="3" r="0.6" fill="#231F1A"/>
|
|
27
|
-
</pattern>
|
|
28
|
-
<radialGradient id="vignette" cx="50%" cy="50%" r="70%">
|
|
29
|
-
<stop offset="60%" stop-color="#0E0D0B" stop-opacity="0"/>
|
|
30
|
-
<stop offset="100%" stop-color="#000" stop-opacity="0.55"/>
|
|
31
|
-
</radialGradient>
|
|
32
|
-
<radialGradient id="recPulse" cx="50%" cy="50%" r="50%">
|
|
33
|
-
<stop offset="0%" stop-color="#E5594E" stop-opacity="0.45"/>
|
|
34
|
-
<stop offset="100%" stop-color="#E5594E" stop-opacity="0"/>
|
|
35
|
-
</radialGradient>
|
|
36
|
-
</defs>
|
|
37
|
-
|
|
38
|
-
<rect width="540" height="1200" class="paper"/>
|
|
39
|
-
<rect width="540" height="1200" fill="url(#grid)" opacity="0.55"/>
|
|
40
|
-
<rect width="540" height="1200" fill="url(#dots)" opacity="0.4"/>
|
|
41
|
-
<rect width="540" height="1200" filter="url(#grain)" opacity="0.5"/>
|
|
42
|
-
<rect width="540" height="1200" fill="url(#vignette)"/>
|
|
43
|
-
|
|
44
|
-
<g class="rule-bright" stroke-width="1" fill="none" opacity="0.95">
|
|
45
|
-
<path d="M24 56 L40 56 M40 40 L40 56"/>
|
|
46
|
-
<path d="M516 56 L500 56 M500 40 L500 56"/>
|
|
47
|
-
<path d="M24 1144 L40 1144 M40 1160 L40 1144"/>
|
|
48
|
-
<path d="M516 1144 L500 1144 M500 1160 L500 1144"/>
|
|
49
|
-
</g>
|
|
50
|
-
|
|
51
|
-
<line x1="40" y1="56" x2="500" y2="56" class="rule" stroke-width="1"/>
|
|
52
|
-
<text class="mono muted" x="40" y="44" font-size="9" letter-spacing="2">@JUICESHARP · PI EXTENSION · NO. 010 – VOICE</text>
|
|
53
|
-
<text class="mono muted" x="500" y="44" font-size="9" letter-spacing="2" text-anchor="end">MIT · v1.3 · 540 × 1200</text>
|
|
54
|
-
|
|
55
|
-
<text class="mono ink" x="40" y="124" font-size="56" font-weight="700" letter-spacing="-2">rpiv<tspan class="accent">-</tspan>voice</text>
|
|
56
|
-
<line x1="40" y1="138" x2="100" y2="138" class="rule-bright" stroke-width="2"/>
|
|
57
|
-
<text class="mono muted" x="40" y="160" font-size="12" letter-spacing="0.3">Talk to Pi instead of typing. Whisper. On your laptop.</text>
|
|
58
|
-
<text class="mono dim" x="40" y="178" font-size="9" letter-spacing="1.4">LOCAL STT · ~99 LANGUAGES · NO CLOUD · NO API KEYS</text>
|
|
59
|
-
|
|
60
|
-
<text class="mono muted" x="40" y="222" font-size="9" letter-spacing="2">FIG. 01 — DICTATION OVERLAY</text>
|
|
61
|
-
<text class="mono muted" x="500" y="222" font-size="9" letter-spacing="2" text-anchor="end">cmd: /voice</text>
|
|
62
|
-
<line x1="40" y1="232" x2="500" y2="232" class="rule" stroke-width="0.75"/>
|
|
63
|
-
|
|
64
|
-
<!-- HERO 1: dictation overlay -->
|
|
65
|
-
<g transform="translate(40 250)">
|
|
66
|
-
<rect x="0" y="0" width="460" height="232" fill="#13110D" stroke="#2A2620" stroke-width="1"/>
|
|
67
|
-
|
|
68
|
-
<!-- transcript: committed + dim partial -->
|
|
69
|
-
<text class="mono ink" x="14" y="32" font-size="13">Refactor the splash runner so download</text>
|
|
70
|
-
<text class="mono ink" x="14" y="50" font-size="13">progress shows percent and bytes on a</text>
|
|
71
|
-
<text class="mono ink" x="14" y="68" font-size="13">single line.</text>
|
|
72
|
-
<text class="mono fade" x="14" y="88" font-size="13">Add a unit test for the hallucination…</text>
|
|
73
|
-
|
|
74
|
-
<!-- mint divider -->
|
|
75
|
-
<line x1="14" y1="108" x2="446" y2="108" class="rule-mint" stroke-width="1.1" stroke-opacity="0.65"/>
|
|
76
|
-
|
|
77
|
-
<!-- equalizer waveform -->
|
|
78
|
-
<g transform="translate(14 122)" class="mint" fill="#6FD0B8" opacity="0.85">
|
|
79
|
-
<rect x="0" y="14" width="6" height="6"/>
|
|
80
|
-
<rect x="10" y="10" width="6" height="14"/>
|
|
81
|
-
<rect x="20" y="6" width="6" height="22"/>
|
|
82
|
-
<rect x="30" y="2" width="6" height="30"/>
|
|
83
|
-
<rect x="40" y="8" width="6" height="18"/>
|
|
84
|
-
<rect x="50" y="0" width="6" height="34"/>
|
|
85
|
-
<rect x="60" y="6" width="6" height="22"/>
|
|
86
|
-
<rect x="70" y="2" width="6" height="30"/>
|
|
87
|
-
<rect x="80" y="10" width="6" height="14"/>
|
|
88
|
-
<rect x="90" y="4" width="6" height="26"/>
|
|
89
|
-
<rect x="100" y="0" width="6" height="34"/>
|
|
90
|
-
<rect x="110" y="6" width="6" height="22"/>
|
|
91
|
-
<rect x="120" y="2" width="6" height="30"/>
|
|
92
|
-
<rect x="130" y="8" width="6" height="18"/>
|
|
93
|
-
<rect x="140" y="4" width="6" height="26"/>
|
|
94
|
-
<rect x="150" y="10" width="6" height="14"/>
|
|
95
|
-
<rect x="160" y="6" width="6" height="22"/>
|
|
96
|
-
<rect x="170" y="12" width="6" height="10"/>
|
|
97
|
-
<rect x="180" y="8" width="6" height="18"/>
|
|
98
|
-
<rect x="190" y="14" width="6" height="6"/>
|
|
99
|
-
<rect x="200" y="10" width="6" height="14"/>
|
|
100
|
-
<rect x="210" y="14" width="6" height="6"/>
|
|
101
|
-
<rect x="220" y="16" width="6" height="2"/>
|
|
102
|
-
<rect x="230" y="16" width="6" height="2"/>
|
|
103
|
-
<rect x="240" y="16" width="6" height="2"/>
|
|
104
|
-
<rect x="250" y="16" width="6" height="2"/>
|
|
105
|
-
<rect x="260" y="16" width="6" height="2"/>
|
|
106
|
-
<rect x="270" y="16" width="6" height="2"/>
|
|
107
|
-
<rect x="280" y="16" width="6" height="2"/>
|
|
108
|
-
<rect x="290" y="16" width="6" height="2"/>
|
|
109
|
-
<rect x="300" y="16" width="6" height="2"/>
|
|
110
|
-
<rect x="310" y="16" width="6" height="2"/>
|
|
111
|
-
<rect x="320" y="16" width="6" height="2"/>
|
|
112
|
-
<rect x="330" y="16" width="6" height="2"/>
|
|
113
|
-
<rect x="340" y="16" width="6" height="2"/>
|
|
114
|
-
<rect x="350" y="16" width="6" height="2"/>
|
|
115
|
-
<rect x="360" y="16" width="6" height="2"/>
|
|
116
|
-
<rect x="370" y="16" width="6" height="2"/>
|
|
117
|
-
<rect x="380" y="16" width="6" height="2"/>
|
|
118
|
-
<rect x="390" y="16" width="6" height="2"/>
|
|
119
|
-
<rect x="400" y="16" width="6" height="2"/>
|
|
120
|
-
<rect x="410" y="16" width="6" height="2"/>
|
|
121
|
-
<rect x="420" y="16" width="6" height="2"/>
|
|
122
|
-
<rect x="430" y="16" width="6" height="2"/>
|
|
123
|
-
</g>
|
|
124
|
-
|
|
125
|
-
<!-- status row: red dot + timer + key hints -->
|
|
126
|
-
<circle cx="22" cy="184" r="11" fill="url(#recPulse)"/>
|
|
127
|
-
<text class="rec mono" x="14" y="190" font-size="13">●</text>
|
|
128
|
-
<text class="mono" font-size="11" y="190">
|
|
129
|
-
<tspan x="34" class="muted" font-weight="700">0:14</tspan>
|
|
130
|
-
<tspan dx="10" class="dim">·</tspan>
|
|
131
|
-
<tspan dx="10" class="ink" font-weight="700">Enter</tspan>
|
|
132
|
-
<tspan dx="6" class="muted">paste</tspan>
|
|
133
|
-
<tspan dx="10" class="dim">·</tspan>
|
|
134
|
-
<tspan dx="10" class="ink" font-weight="700">Space</tspan>
|
|
135
|
-
<tspan dx="6" class="muted">pause</tspan>
|
|
136
|
-
<tspan dx="10" class="dim">·</tspan>
|
|
137
|
-
<tspan dx="10" class="ink" font-weight="700">Tab</tspan>
|
|
138
|
-
<tspan dx="6" class="muted">settings</tspan>
|
|
139
|
-
<tspan dx="10" class="dim">·</tspan>
|
|
140
|
-
<tspan dx="10" class="ink" font-weight="700">Esc</tspan>
|
|
141
|
-
</text>
|
|
142
|
-
|
|
143
|
-
<!-- footnote -->
|
|
144
|
-
<line x1="14" y1="206" x2="446" y2="206" class="rule" stroke-width="0.5" stroke-dasharray="1 3"/>
|
|
145
|
-
<text class="mono dim" x="14" y="222" font-size="9" letter-spacing="1.4">VAD-CHUNKED · LIVE PARTIAL · PASTE ON ENTER</text>
|
|
146
|
-
</g>
|
|
147
|
-
|
|
148
|
-
<!-- FIG 02 — Settings screen -->
|
|
149
|
-
<text class="mono muted" x="40" y="514" font-size="9" letter-spacing="2">FIG. 02 — SETTINGS (TAB)</text>
|
|
150
|
-
<text class="mono muted" x="500" y="514" font-size="9" letter-spacing="2" text-anchor="end">~/.config/rpiv-voice/voice.json</text>
|
|
151
|
-
<line x1="40" y1="524" x2="500" y2="524" class="rule" stroke-width="0.75"/>
|
|
152
|
-
|
|
153
|
-
<g transform="translate(40 542)">
|
|
154
|
-
<rect x="0" y="0" width="460" height="172" fill="#13110D" stroke="#2A2620" stroke-width="1"/>
|
|
155
|
-
|
|
156
|
-
<text class="mono accent" x="14" y="22" font-size="11" letter-spacing="1.4" font-weight="700">◆ SETTINGS</text>
|
|
157
|
-
<text class="mono dim" x="446" y="22" font-size="9" letter-spacing="1.2" text-anchor="end">Ctrl-S to save</text>
|
|
158
|
-
|
|
159
|
-
<line x1="14" y1="34" x2="446" y2="34" class="rule" stroke-width="0.5" stroke-dasharray="1 3"/>
|
|
160
|
-
|
|
161
|
-
<text class="mono muted" x="14" y="58" font-size="11">microphone</text>
|
|
162
|
-
<text class="mono ink" x="446" y="58" font-size="11" text-anchor="end">MacBook Pro Microphone (default)</text>
|
|
163
|
-
|
|
164
|
-
<text class="mono muted" x="14" y="84" font-size="11">language</text>
|
|
165
|
-
<text class="mono ink" x="446" y="84" font-size="11" text-anchor="end">auto — whisper-base int8</text>
|
|
166
|
-
|
|
167
|
-
<text class="mono muted" x="14" y="110" font-size="11">filter whisper noise</text>
|
|
168
|
-
<g transform="translate(380 96)">
|
|
169
|
-
<rect x="0" y="0" width="66" height="20" rx="10" fill="#1B0F08" stroke="#2A2620" stroke-width="0.75"/>
|
|
170
|
-
<circle cx="50" cy="10" r="7" fill="#FF7A3D"/>
|
|
171
|
-
<text class="mono accent" x="14" y="14" font-size="9" letter-spacing="1.2" font-weight="700">ON</text>
|
|
172
|
-
</g>
|
|
173
|
-
|
|
174
|
-
<line x1="14" y1="128" x2="446" y2="128" class="rule" stroke-width="0.5" stroke-dasharray="1 3"/>
|
|
175
|
-
<text class="mono dim" x="14" y="148" font-size="9" letter-spacing="1.4">strips "thanks for watching" · "[Music]" · loop tokens</text>
|
|
176
|
-
</g>
|
|
177
|
-
|
|
178
|
-
<!-- Pipeline strip -->
|
|
179
|
-
<text class="mono muted" x="40" y="754" font-size="9" letter-spacing="2">FIG. 03 — PIPELINE</text>
|
|
180
|
-
<line x1="40" y1="764" x2="500" y2="764" class="rule" stroke-width="0.75"/>
|
|
181
|
-
|
|
182
|
-
<g transform="translate(40 786)">
|
|
183
|
-
<!-- 4 stages -->
|
|
184
|
-
<g>
|
|
185
|
-
<rect x="0" y="0" width="100" height="48" fill="#15120E" stroke="#2A2620" stroke-width="0.6"/>
|
|
186
|
-
<text class="mono mint" x="50" y="20" font-size="10" font-weight="700" letter-spacing="1.2" text-anchor="middle">SPEAK</text>
|
|
187
|
-
<text class="mono muted" x="50" y="36" font-size="9" letter-spacing="1.2" text-anchor="middle">decibri mic</text>
|
|
188
|
-
</g>
|
|
189
|
-
<text class="accent mono" x="108" y="30" font-size="14" font-weight="700">→</text>
|
|
190
|
-
<g>
|
|
191
|
-
<rect x="120" y="0" width="100" height="48" fill="#15120E" stroke="#2A2620" stroke-width="0.6"/>
|
|
192
|
-
<text class="mono mint" x="170" y="20" font-size="10" font-weight="700" letter-spacing="1.2" text-anchor="middle">VAD CHUNK</text>
|
|
193
|
-
<text class="mono muted" x="170" y="36" font-size="9" letter-spacing="1.2" text-anchor="middle">silero</text>
|
|
194
|
-
</g>
|
|
195
|
-
<text class="accent mono" x="228" y="30" font-size="14" font-weight="700">→</text>
|
|
196
|
-
<g>
|
|
197
|
-
<rect x="240" y="0" width="100" height="48" fill="#15120E" stroke="#2A2620" stroke-width="0.6"/>
|
|
198
|
-
<text class="mono mint" x="290" y="20" font-size="10" font-weight="700" letter-spacing="1.2" text-anchor="middle">DECODE</text>
|
|
199
|
-
<text class="mono muted" x="290" y="36" font-size="9" letter-spacing="1.2" text-anchor="middle">sherpa-onnx</text>
|
|
200
|
-
</g>
|
|
201
|
-
<text class="accent mono" x="348" y="30" font-size="14" font-weight="700">→</text>
|
|
202
|
-
<g>
|
|
203
|
-
<rect x="360" y="0" width="100" height="48" fill="#15120E" stroke="#2A2620" stroke-width="0.6"/>
|
|
204
|
-
<text class="mono accent" x="410" y="20" font-size="10" font-weight="700" letter-spacing="1.2" text-anchor="middle">PASTE</text>
|
|
205
|
-
<text class="mono muted" x="410" y="36" font-size="9" letter-spacing="1.2" text-anchor="middle">Pi editor</text>
|
|
206
|
-
</g>
|
|
207
|
-
</g>
|
|
208
|
-
|
|
209
|
-
<text class="mono dim" x="40" y="868" font-size="9" letter-spacing="1.4">EVERY STAGE LOCAL · AUDIO NEVER LEAVES THE LAPTOP</text>
|
|
210
|
-
|
|
211
|
-
<!-- Stat strip -->
|
|
212
|
-
<line x1="40" y1="896" x2="500" y2="896" class="rule" stroke-width="0.5" stroke-dasharray="1 3"/>
|
|
213
|
-
<g transform="translate(40 916)">
|
|
214
|
-
<text class="mono dim" x="0" y="12" font-size="8.5" letter-spacing="1.6">MODEL</text>
|
|
215
|
-
<text class="mono ink" x="0" y="32" font-size="13" font-weight="700">whisper-base</text>
|
|
216
|
-
<text class="mono muted" x="0" y="48" font-size="9" letter-spacing="1.2">multilingual int8</text>
|
|
217
|
-
|
|
218
|
-
<text class="mono dim" x="160" y="12" font-size="8.5" letter-spacing="1.6">DOWNLOAD</text>
|
|
219
|
-
<text class="mono ink" x="160" y="32" font-size="13" font-weight="700">~198 MB</text>
|
|
220
|
-
<text class="mono muted" x="160" y="48" font-size="9" letter-spacing="1.2">first run only</text>
|
|
221
|
-
|
|
222
|
-
<text class="mono dim" x="300" y="12" font-size="8.5" letter-spacing="1.6">ON DISK</text>
|
|
223
|
-
<text class="mono ink" x="300" y="32" font-size="13" font-weight="700">~157 MB</text>
|
|
224
|
-
<text class="mono muted" x="300" y="48" font-size="9" letter-spacing="1.2">~/.pi/models/</text>
|
|
225
|
-
|
|
226
|
-
<text class="mono dim" x="400" y="12" font-size="8.5" letter-spacing="1.6">LANGUAGES</text>
|
|
227
|
-
<text class="mono ink" x="400" y="32" font-size="13" font-weight="700">~99</text>
|
|
228
|
-
<text class="mono muted" x="400" y="48" font-size="9" letter-spacing="1.2">autodetect</text>
|
|
229
|
-
</g>
|
|
230
|
-
|
|
231
|
-
<line x1="40" y1="1100" x2="500" y2="1100" class="rule" stroke-width="0.5" stroke-dasharray="1 3"/>
|
|
232
|
-
<text class="mono muted" x="40" y="1118" font-size="9" letter-spacing="1.8">SPEAK → CHUNK → DECODE → PASTE</text>
|
|
233
|
-
|
|
234
|
-
<line x1="40" y1="1144" x2="500" y2="1144" class="rule" stroke-width="1"/>
|
|
235
|
-
<text class="mono muted" x="40" y="1168" font-size="9.5" letter-spacing="1.8">
|
|
236
|
-
<tspan class="accent">▶</tspan> pi install npm:@juicesharp/rpiv-voice
|
|
237
|
-
</text>
|
|
238
|
-
<text class="mono muted" x="500" y="1168" font-size="9" letter-spacing="2" text-anchor="end">ON-DEVICE</text>
|
|
239
|
-
</svg>
|