Skip to content

docs: NeMo-Speech.cpp v0.1.0 live STT feasibility spike (#845) - #850

Merged
currentbits merged 2 commits into
mainfrom
coder/fork-execute-this-live-speech-to-text-de-3b4108
Sep 3, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/fork-execute-this-live-speech-to-text-de-3b4108

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Throwaway feasibility spike for live speech-to-text (#845). Not product code. Do not merge as a shipping feature.

Verdict: PARTIAL

macOS arm64 / Metal live gates passed on this machine:

  • first partial 824 ms / 823 ms (gate ≤ 1.5 s)
  • stop-to-final 79 ms / 65 ms on live-paced audio
  • 300 s audio in 19.1 s wall (RTF 0.064)
  • peak sidecar RSS 1010.8 MiB
  • warm-cache transcribe under sandbox-exec deny-network
  • Apache-2.0 runtime may be bundled; GGUF stays user-downloaded (NVIDIA Open Model License)

Linux x64 CPU and Windows x64 CPU live RTF are not proven here (QEMU SIGILL; cannot run PE32+). Follow-up on this PR: native ubuntu-latest / windows-latest doctor + websocket turn + RTF/RSS.

Contents

  • docs/superpowers/plans/2026-09-03-live-speech-to-text-feasibility.md
  • spike/speech/ helpers (live websocket client, macOS runner, linux qemu smoke)

Design notes for later product PRs

  • delta events are incremental suffixes; concatenate, replace the composer range only on completed.transcript
  • raise sidecar --read-timeout / --write-timeout above 30 s
  • Windows packaging must copy the full bin/ DLL set
  • pin GGUF sha256 d9a01898d2a611c8764e23a1c2f45e70bbd5a425dc4de93692ac951dd603812d

Willem added 2 commits September 2, 2026 20:10
… Fork: Fork: Fork: Solenta guardrail deny/ask interception (c
Throwaway spike only: macOS arm64 Metal live gates passed; Linux/Windows
live RTF remain not-proven. Report plus spike/speech helpers, no product code.
@currentbits
currentbits marked this pull request as ready for review September 3, 2026 09:59
@currentbits
currentbits merged commit ea85e2b into main Sep 3, 2026
3 of 6 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T10:03:17.566736Z f269958 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f269958802

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/worktrees.js
Comment on lines 711 to +712
if (wtPath) {
const args = forceRemove
? ["worktree", "remove", "--force", wtPath]
: ["worktree", "remove", wtPath];
const rem = gitTry(project.path, args);
if (!rem.ok) {
throw new Error(
`Failed to remove worktree: ${rem.combined.split("\n")[0]}`,
);
if (fs.existsSync(wtPath)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bypass the missing cwd before the non-force preflight

When a user clicks “Delete worktree” after the directory has already disappeared, the UI first calls removeWorktree(false), whose non-force path runs gitOut(wtPath, ["status", ...]) before reaching this new existence check. Because the missing path is used as the command cwd, that call throws, this branch never runs, and the stale worktreePath and branch fields remain. Handle the missing-directory case before the non-force status inspection so the normal UI action can perform the intended cleanup.

Useful? React with 👍 / 👎.

Comment thread spike/speech/run-macos.sh
Comment on lines +37 to +41
) &
echo $! > "$OUT/rss.pid"

echo "waiting for /ready"
for i in $(seq 1 180); do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset the per-run RSS data before appending samples

When this script is rerun with the default cache, rss.csv already exists and every new sample is appended to it; the final calculation then scans the entire accumulated file. Consequently, the reported peak and sample count include earlier runs and can silently invalidate the current run's memory gate. Truncate the file before starting the sampler or use a run-specific output directory.

Useful? React with 👍 / 👎.

Comment thread spike/speech/run-macos.sh
Comment on lines +28 to +32
pid=$(cat "$OUT/serve.pid")
echo "serve pid $pid port $PORT"

(
while kill -0 "$pid" 2>/dev/null; do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop the sidecar and sampler on every script exit

After the server and RSS sampler are backgrounded, neither the successful path nor a set -e failure kills them. Running the spike therefore leaves nemo-speech occupying the port and the sampler continually appending to rss.csv, so a subsequent run can fail or probe the previous server. Install an exit trap after capturing the PIDs to terminate both processes.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant