Skip to content

Apply SpeechSink erratum to the live STT spec (#845) #855

Closed

Description

@currentbits

Apply the #168 Talk through it #845 erratum to the approved live STT spec. Spec-only. Do not implement Talk through it. Do not change the NeMo sidecar or electron/speech.js protocol.

Spec: docs/superpowers/specs/2026-09-03-live-speech-to-text-design.md

Erratum (from #168):

  • SpeechSink (src/speechSink.ts) is a renderer-only singleton: dictation XOR intermediary XOR none.
  • SpeechSink is the only getUserMedia + speech.start caller.
  • Composer is the dictation consumer of speech:changed (replace partial, commit final into the provisional range). It does not own capture.
  • Electron media permission keys off speech.start from the main frame, not a renderer SpeechSink object.
  • Keep one app-wide transcription session. Textarea is read-only only while kind === "dictation".

Not in this issue:

Related: #845 (live STT), #168 (Talk through it).

Activity

  1. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Applied in this worktree to docs/superpowers/specs/2026-09-03-live-speech-to-text-design.md (uncommitted). Spec-only.

    • SpeechSink (src/speechSink.ts) is the only getUserMedia + speech.start caller. dictation XOR intermediary XOR none.
    • Composer is the dictation consumer of speech:changed (replace partial, commit final into the provisional range). Dictate lives in the left pills row.
    • media permission keys off speech.start from the main frame (session initiated / in flight), not a renderer SpeechSink object. start() must set that flag before awaiting sidecar readiness so the click gesture survives getUserMedia.
    • Product PR 3 is where SpeechSink lands. src/speechSink.ts is not in this change: the Live speech-to-text in the composer (NeMo-Speech.cpp) #845 renderer PR is not being written (no speech IPC, no electron/speech.js).
    • Voice dictation in the composer #168 Talk through it is not implemented. Sidecar protocol unchanged.

    Leave this issue plan:doing until the spec patch is committed.

  2. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Follow-up #856 updated the Talk through it spec so its #845 erratum section no longer says this spec currently assigns Composer as owner of the mic. Replacements are marked applied here.

    A copy of this live STT spec patch is now also in worktree c25c252f (was only on disk in dbb29078, hidden from git status by assume-unchanged). Still uncommitted. No src/speechSink.ts.

  3. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Spec erratum is committed locally, not yet on origin/main.

    • Commit: dbddc90d967a0591a3351dc109c759b663d6a261
    • Branch: coder/fork-fork-fork-fork-execute-this-live-sp-c0a69d
    • File: docs/superpowers/specs/2026-09-03-live-speech-to-text-design.md

    SpeechSink owns capture; Composer is the dictation consumer. Spec-only (no src/speechSink.ts). Leaving this open with plan:doing until the file lands on main.

  4. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Branch pushed: coder/fork-fork-fork-fork-execute-this-live-sp-c0a69d @ dbddc90d967a0591a3351dc109c759b663d6a261

    Still not on origin/main, so leaving this open (plan:doing). Spec-only; no src/speechSink.ts.

  5. added
    plan:done
    and removed
    plan:doing
    on Sep 3, 2026
  6. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Fork: Fork: Fork: Fork: execute this live speech-to-text des". Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions