Add live dictation and upgrade local runtimes #14

Merged
kleb merged 2 commits from feature/live-typing-upgrades into main 2026-10-29 01:30:15 +01:00
Owner

Dictation should appear while recording, without waiting for stop, and runtime upgrades should preserve existing data.

Live typing now shows and optionally inserts finalized phrases during recording, with shorter phrase boundaries, bounded backlog, and in-memory audio transfer. Stable dependencies are upgraded, including Electron 45, Sherpa 2, and React 19.3; clipboard access uses the new asynchronous API and preserves all formats. Settings have versioned, validated, atomic migrations with exact backups, and invalid data is refused unchanged.

Real testing exposed native abort hangs and worker-teardown crashes. Cancellation now discards subsequent results immediately and safely drains the active decode before reuse. Packaging filters also prevent source, tests, and screenshots from leaking into distributables. Existing streaming preferences are preserved; fresh installs enable live typing. macOS now requires 13+.

packaged-live-transcript.png

native-typing-target.png

validation.md

Review follow-up: saved native-typing preferences are retained, while Linux uses direct typing at execution time. The fallback passed a focused regression test and actual Electron typing into a second window.

Proven with 133 passing tests, check/lint/build, actual packaged Electron microphone-to-ASR streaming, both native engines, global hotkeys and external typing, clipboard restoration, import, cancellation, migrations, and restart persistence. Runtime proof is Linux CPU with a synthetic microphone; Windows/macOS/GPU and physical microphone hardware were not tested.

Dictation should appear while recording, without waiting for stop, and runtime upgrades should preserve existing data. Live typing now shows and optionally inserts finalized phrases during recording, with shorter phrase boundaries, bounded backlog, and in-memory audio transfer. Stable dependencies are upgraded, including Electron 45, Sherpa 2, and React 19.3; clipboard access uses the new asynchronous API and preserves all formats. Settings have versioned, validated, atomic migrations with exact backups, and invalid data is refused unchanged. Real testing exposed native abort hangs and worker-teardown crashes. Cancellation now discards subsequent results immediately and safely drains the active decode before reuse. Packaging filters also prevent source, tests, and screenshots from leaking into distributables. Existing streaming preferences are preserved; fresh installs enable live typing. macOS now requires 13+. ![packaged-live-transcript.png](https://git.kleb.sh/attachments/b4455801-b374-47c4-a97d-8cc10bd00475) ![native-typing-target.png](https://git.kleb.sh/attachments/757bbeeb-94ac-4f6f-ac9c-bb36f8201f51) [validation.md](https://git.kleb.sh/attachments/08c51b03-06ef-49da-9a18-c6a5d29df6d0) Review follow-up: saved native-typing preferences are retained, while Linux uses direct typing at execution time. The fallback passed a focused regression test and actual Electron typing into a second window. Proven with 133 passing tests, check/lint/build, actual packaged Electron microphone-to-ASR streaming, both native engines, global hotkeys and external typing, clipboard restoration, import, cancellation, migrations, and restart persistence. Runtime proof is Linux CPU with a synthetic microphone; Windows/macOS/GPU and physical microphone hardware were not tested.
Collaborator

kReview review

Verdict: no findings

The review found no verified defects in the changed code.

This review did not check generated or vendored files: bun.lock, ui/bun.lock.

kReview checked only the PR diff, metadata, and supplied repository context at 02ad97c789. It reports only issues supported by this material.

Estimated cost: ~$0.46 total (876.2k in / 3.0k out); this run ~$0.24 (494.2k in / 1.5k out) / gpt-6.1-terra.

Run time: 1:22 total; this run 0:37.

<!-- codex-forgejo-review --> <!-- codex-forgejo-review-head:02ad97c789445522fceb3d9c34eeddbb7ca97b67 --> <!-- codex-forgejo-review-comparison:v1:609cd4f34672367c753abc3de2686b79625362f83b5625ccf3a741006f8135ca --> ## kReview review **Verdict:** no findings The review found no verified defects in the changed code. _This review did not check generated or vendored files:_ `bun.lock`, `ui/bun.lock`. _kReview checked only the PR diff, metadata, and supplied repository context at `02ad97c789`. It reports only issues supported by this material._ _Estimated cost: ~$0.46 total (876.2k in / 3.0k out); this run ~$0.24 (494.2k in / 1.5k out) / gpt-6.1-terra._ _Run time: 1:22 total; this run 0:37._ <!-- codex-forgejo-review-state:eyJoZWFkU2hhIjoiMDJhZDk3Yzc4OTQ0NTUyMmZjZWIzZDljMzRlZWRkYmI3Y2E5N2I2NyIsImNvbXBhcmlzb25LZXkiOiJ2MTo2MDljZDRmMzQ2NzIzNjdjNzUzYWJjM2RlMjY4NmI3OTYyNTM2MmY4M2I1NjI1Y2NmM2E3NDEwMDZmODEzNWNhIiwic3VtbWFyeSI6IlRoZSByZXZpZXcgZm91bmQgbm8gdmVyaWZpZWQgZGVmZWN0cyBpbiB0aGUgY2hhbmdlZCBjb2RlLiIsImZpbmRpbmdzIjpbXSwiY3VtdWxhdGl2ZUNvc3QiOnsidXNkIjowLjQ2NDAxMjUsImlucHV0VG9rZW5zIjo4NzYxODQsIm91dHB1dFRva2VucyI6Mjk5OSwibW9kZWwiOiJncHQtNi4xLXRlcnJhIn0sImN1bXVsYXRpdmVEdXJhdGlvbk1zIjo4MjMzMX0= -->
kleb merged commit fa9305de8b into main 2026-10-29 01:30:15 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kleb/VoiceTyper!14
No description provided.