Repository navigation
Closed
Labels
Description
Approved design: docs/superpowers/specs/2026-09-03-live-speech-to-text-design.md
Private, English-only live microphone dictation in the composer. Partial words appear in the draft while speaking; stop commits the final transcript. Related to #168 (voice dictation) but this issue is the live-transcription path, not a voice-intermediary agent.
Decisions
- NVIDIA NeMo-Speech.cpp v0.1.0 sidecar (not Parakeet TDT).
- Model:
nvidia/nemotron-speech-streaming-en-0.6bQ8 GGUF (nemotron-speech-streaming-en-0.6b.q8_0.gguf, ~700 MB). Downloaded after explicit confirmation; never shipped in app archives. - Capture in the renderer (
getUserMedia+ AudioWorklet, 16 kHz mono PCM16). Main process owns the sidecar, model files, loopback auth, download, shutdown. - One app-wide session. Textarea read-only while recording.
- Bundle Metal runtime on macOS arm64; CPU on Windows/Linux x64.
Gate (must pass before product code)
Throwaway spike, not merged:
- live partial + final text on macOS arm64/Metal, Windows x64/CPU, Linux x64/CPU
- first partial ≤ 1.5s; stop-to-final ≤ 1.5s
- RTF ≤ 1.0 for 5 minutes; sidecar RSS < 2.5 GB
- warm-cache transcription with outbound network blocked
- runtime Apache-2.0 + model NVIDIA Open Model License must permit Solenta's MIT distribution (runtime bundled; model user-downloaded)
If Windows/Linux CPU miss latency/throughput, stop and amend the design. No silent fallback to Python/NeMo or Parakeet TDT.
Product PRs after the gate
speechIPC namespace +speech:changedpush (CoderApi, ipcChannels, preload, fakeCoder, devCoder)electron/speech.jsmanager, download/verify, sidecar, tests- Composer mic control + AudioWorklet + renderer tests
- Packaging,
NSMicrophoneUsageDescription, licenses, CInemo-speech doctor+ checked-in WAV gate
Pinned v0.1.0 runtime SHA-256
- macos-aarch64-metal.tar.gz
f1dff4f9dd9c96214f8cb78b982812459132df8a4ad1a42409fd94de4a366244 - linux-x86_64-cpu.tar.gz
0f74131d631ad2c694cf0ec53490866bb6461147959589a69fb6fc231944065b - windows-x86_64-cpu.zip
5e4ea81046012edcd77fd8848de8eefb5a4ba38cc26f52eb544ab184695a75d6
Activity
currentbits commentedon Sep 3, 2026
Orchestrator started execution. First step is the throwaway feasibility spike (not merged). Product PRs wait on that gate.
currentbits commentedon Sep 3, 2026
Spike worker (thread 3b4108e8) finished. Report:
docs/superpowers/plans/2026-09-03-live-speech-to-text-feasibility.mdoncoder/fork-execute-this-live-speech-to-text-de-3b4108(f2699588). No product code, no PR.SPIKE_VERDICT: PARTIAL
macOS arm64 Metal live gates passed:
/readydevice=metal;--no-ui404s playground;/v1requires bearersandbox-execdeny-network CLI transcribe succeededd9a01898…3812d(699,872,960 bytes)Linux x64: archive verified;
docker --platform linux/amd64prints--versionthen SIGILL ondoctor/serve(QEMU). Live not-proven. Windows x64: zip+DLLs beside exe verified; live not-proven.Licenses: Apache-2.0 runtime may be bundled with NOTICE; NVIDIA Open Model License allows user-download into userData; do not ship the GGUF.
Protocol gotcha for product:
conversation.item.input_audio_transcription.deltais an incrementaldeltasuffix, not a full snapshot. Concatenate; replace the provisional range only oncompleted.transcript.currentbits commentedon Sep 3, 2026
Spike worker finished PARTIAL on
coder/fork-execute-this-live-speech-to-text-de-3b4108(commit f269958). Not merged.macOS arm64 Metal (this machine) — live gates passed
transcribesucceeded undersandbox-execdeny-network.d9a01898d2a611c8764e23a1c2f45e70bbd5a425dc4de93692ac951dd603812d(699,872,960 bytes).Not proven
docker --platform linux/amd64SIGILLs ondoctor/serve(QEMU, not a native fail). Do not treat as a backend miss.Design notes for later product PRs
deltaevents are incremental suffixes, not snapshots. Concatenate, then replace the provisional range oncompleted.--read-timeout/--write-timeoutabove the 30 s default.bin/DLL set, not onlynemo-speech.exe.Product PRs still blocked on a full three-platform PASS unless we explicitly accept macOS-only first. Native
ubuntu-latest/windows-lateststill need doctor + one websocket turn + RTF/RSS.Report:
docs/superpowers/plans/2026-09-03-live-speech-to-text-feasibility.mdplus throwawayspike/speech/helpers.currentbits commentedon Sep 3, 2026
Draft spike PR: #850 (allowOversize). Sending the same worker to add a native ubuntu-latest + windows-latest live-gate workflow on that PR. Product PRs still blocked.
docs: NeMo-Speech.cpp v0.1.0 live STT feasibility spike (#845) (#850)
ci: native linux/windows NeMo-Speech.cpp live STT spike (#845)
currentbits commentedon Sep 3, 2026
Pushed throwaway native CI for Linux/Windows live gates onto PR #850 (
9f69977c)..github/workflows/speech-spike.yml(ubuntu-latest+windows-latest, does not touchtest.yml)spike/speech/run-ci.mjsspike/speech/fixtures/phrase-16k.wavActions: https://github.com/currentbits/solenta/actions/workflows/speech-spike.yml
currentbits commentedon Sep 3, 2026
Native Linux x64 CPU and Windows x64 CPU live gates cannot be proven on the Apple Silicon host (QEMU SIGILL; PE32+ cannot run). PR #850 merged the macOS Metal spike report.
Follow-up: throwaway
ubuntu-latest/windows-latestCI on a new PR (do not merge as product). Pins stay as in the feasibility report. No composer/IPC work until those native jobs print first-partial, stop-to-final, and optional RTF/RSS.ci: fix speech-spike runner.temp in job env (#845)
ci: trigger speech-spike on push (#845)
ci: wait up to 300s for CPU max-pace STT completed (#845)
ci: run speech-spike on push and wait out CPU RTF backlog (#845)
ci: match working speech-spike triggers from native CPU run (#845)
21 remaining items
currentbits commentedon Sep 3, 2026
Packaging worker finished on
coder/fork-execute-this-live-speech-to-text-de-726531(3b4374a7), stacked on #865. 6 files, packaging tests 15/15, runtime path isresources/speech/bin(matcheselectron/speech.js). Noon: pushGGUF job. Not landed. 881 lines → allowOversize.Land leftover open worktrees onto origin/main (#870)
P1: Codex resume dies with "already has an active writer"; R (#1265)
Merge worktree coder/fork-mark-845-speechsink-erratum-as-appl-fef718:…
docs: NeMo-Speech.cpp v0.1.0 live STT feasibility spike (#845)
ci: native linux/windows NeMo-Speech.cpp live STT spike (#845)
ci: fix speech-spike runner.temp in job env (#845)
ci: trigger speech-spike on push (#845)
ci: wait up to 300s for CPU max-pace STT completed (#845)
docs: record Linux/Windows native live STT CI PASS (#845)
docs: record native Linux/Windows live STT CI PASS (#845)
ci: restrict leftover speech-spike.yml to workflow_dispatch (#860)
feat(speech): add CoderApi speech IPC namespace (#845)
feat(speech): main-process NeMo-Speech.cpp manager (#845) (#863)
feat(speech): live dictation in the composer (#845)