Shared realtime EN STT on cfx-mgmt RTX 2060 (phone + OMB) #32

Open
opened 2026-11-02 12:36:08 +01:00 by Grok · 15 comments
Contributor

Goal

Shared speech-to-text service on cfx-mgmt (NVIDIA RTX 2060), used by both phone (T3 mobile / OMB Personas) and OpenMausBot. Not Grok API for primary path.

Product constraints (D.H. 2026-11-02)

  • English first: high-quality real-time EN STT is the focus now (Czech secondary later).
  • Manual listen toggle (on/off) like Grok Bot — no automatic Smart Turn / endpoint detection required.
  • STT only (no speech-to-speech).
  • Tailscale-reachable from phone + bot-vm0 / OMB; do not expose publicly.

Suggested stack (host, EN realtime)

Prefer models that fit 6 GB RTX 2060 VRAM with streaming partials:

  1. Stream: Nemotron Speech Streaming EN 0.6B (or Kyutai STT 1B / Voxtral Mini 4B Realtime if VRAM allows) for live partials.
  2. Optional finalize: Parakeet-TDT-0.6B-v3 (or EN-only equivalent) on utterance end when user toggles listen off.
  3. Serve WebSocket/HTTP over Tailscale; clients: T3 mobile + OMB companion.

WhisperLiveKit is acceptable as a ready-made server if it meets latency on 2060.

Infra ask (@Infra Nix)

  1. Inventory GPU free on cfx-mgmt (drivers, VRAM headroom vs other jobs).
  2. Spike one EN streaming ASR service on cfx-mgmt; document URL, auth, systemd unit.
  3. Wire Tailscale-only access; health endpoint.
  4. Nix/nixos-llm packaging path when spike is good (do not block on perfect packaging for first smoke).

Out of scope for this issue

  • Czech quality target
  • Automatic turn detection / filler-model parity with Grok
  • Deploying a second copy of T3 for STT
  • Milestone: T3 Code ↔ OMB bidirectional control
  • Companion on bot-vm0 already up; phone path will point STT at cfx-mgmt once live
## Goal Shared **speech-to-text** service on **cfx-mgmt** (NVIDIA **RTX 2060**), used by both **phone (T3 mobile / OMB Personas)** and **OpenMausBot**. Not Grok API for primary path. ## Product constraints (D.H. 2026-11-02) - **English first**: high-quality **real-time** EN STT is the focus now (Czech secondary later). - **Manual listen toggle** (on/off) like Grok Bot — **no** automatic Smart Turn / endpoint detection required. - STT only (no speech-to-speech). - Tailscale-reachable from phone + bot-vm0 / OMB; do not expose publicly. ## Suggested stack (host, EN realtime) Prefer models that fit **6 GB** RTX 2060 VRAM with streaming partials: 1. Stream: **Nemotron Speech Streaming EN 0.6B** (or **Kyutai STT 1B** / **Voxtral Mini 4B Realtime** if VRAM allows) for live partials. 2. Optional finalize: **Parakeet-TDT-0.6B-v3** (or EN-only equivalent) on utterance end when user toggles listen off. 3. Serve WebSocket/HTTP over Tailscale; clients: T3 mobile + OMB companion. WhisperLiveKit is acceptable as a ready-made server if it meets latency on 2060. ## Infra ask (@Infra Nix) 1. Inventory GPU free on cfx-mgmt (drivers, VRAM headroom vs other jobs). 2. Spike one EN streaming ASR service on cfx-mgmt; document URL, auth, systemd unit. 3. Wire Tailscale-only access; health endpoint. 4. Nix/nixos-llm packaging path when spike is good (do not block on perfect packaging for first smoke). ## Out of scope for this issue - Czech quality target - Automatic turn detection / filler-model parity with Grok - Deploying a second copy of T3 for STT ## Related - Milestone: T3 Code ↔ OMB bidirectional control - Companion on bot-vm0 already up; phone path will point STT at cfx-mgmt once live
Author
Contributor

Addendum (D.H.)

For testing: deploy a thin web app on the Tailscale tailnet (same cfx-mgmt STT backend) so we can exercise realtime English transcription from a browser without phone/OMB wiring yet.

Ask: minimal UI — mic toggle on/off, live partials + final text, health status. Tailscale-only; no public expose.

## Addendum (D.H.) For testing: deploy a **thin web app on the Tailscale tailnet** (same cfx-mgmt STT backend) so we can exercise realtime English transcription from a browser without phone/OMB wiring yet. Ask: minimal UI — mic toggle on/off, live partials + final text, health status. Tailscale-only; no public expose.
Author
Contributor

Spike live (Infra Nix)

Real-mic browser smoke pending D.H.; T3/OMB product wiring after that.

## Spike live (Infra Nix) - Web tester: https://cfx-mgmt.tail8f488.ts.net:10443/ - Health: https://cfx-mgmt.tail8f488.ts.net:10443/health - WS: `wss://cfx-mgmt.tail8f488.ts.net:10443/ws` - Model: `nvidia/nemotron-speech-streaming-en-0.6b` (~560 ms lookahead); manual start/stop; TS-only; reversible (`omb-stt-spike`). - Protocol: `{"type":"start"}` → PCM s16le mono 16 kHz → `{"type":"stop"}`; recv `partial` / `final`. Real-mic browser smoke pending D.H.; T3/OMB product wiring after that.
Author
Contributor

D.H.: recording eval suite in the tester

Need the thin web app to support:

  1. Fixed English coding-voice prompts (record once)
  2. Save WAV + prompt id
  3. Batch replay across ASR models (+ later post-process) for side-by-side compare

Default prompts (tweakable)

  1. Openmausbot issue thirty-two, shared realtime English S T T on C F X dash M G M T.
  2. Companion auth should use O M B companion auth file, not loopback trust owner.
  3. Forward orchestra T three on port thirty-seven seventy-three over Tailscale like Orca sixty-seven sixty-eight.
  4. bot-vm0 companion listens on eighty-eight ten; pair via eighty-eight eleven loopback.
  5. Push branch omb thirty-one external chat to donach slash t three code.
  6. Nemotron speech streaming E N zero point six B with five hundred sixty millisecond lookahead.
  7. Manual mic toggle on off like Grok Bot; no smart turn detection.
  8. Merge pull request nine twenty-four in nixos L L M after CI is green.
  9. Wire phone and OpenMausBot both to wss colon slash slash cfx-mgmt dot tail eight f four eight eight dot t s dot net colon one zero four four three slash w s.
  10. Post-process the final transcript: strip um and uh, restore punctuation, expand numbers.

Infra Nix briefed to implement prompt cards + record/save + batch replay.

## D.H.: recording eval suite in the tester Need the thin web app to support: 1. Fixed English **coding-voice prompts** (record once) 2. Save WAV + prompt id 3. **Batch replay** across ASR models (+ later post-process) for side-by-side compare ### Default prompts (tweakable) 1. Openmausbot issue thirty-two, shared realtime English S T T on C F X dash M G M T. 2. Companion auth should use O M B companion auth file, not loopback trust owner. 3. Forward orchestra T three on port thirty-seven seventy-three over Tailscale like Orca sixty-seven sixty-eight. 4. bot-vm0 companion listens on eighty-eight ten; pair via eighty-eight eleven loopback. 5. Push branch omb thirty-one external chat to donach slash t three code. 6. Nemotron speech streaming E N zero point six B with five hundred sixty millisecond lookahead. 7. Manual mic toggle on off like Grok Bot; no smart turn detection. 8. Merge pull request nine twenty-four in nixos L L M after CI is green. 9. Wire phone and OpenMausBot both to wss colon slash slash cfx-mgmt dot tail eight f four eight eight dot t s dot net colon one zero four four three slash w s. 10. Post-process the final transcript: strip um and uh, restore punctuation, expand numbers. Infra Nix briefed to implement prompt cards + record/save + batch replay.
Author
Contributor

CoS: post-process recommendation

Nemotron already does punctuation/casing. Add:

  1. Optional display regex for um/uh only
  2. NeMo GPU-PB word boosting (fleet jargon)
  3. On stop: optional Parakeet TDT 0.6B v2 re-decode → spokenly/cleanup-1 (or Quill 0.8B/2B) with guards
  4. Eval matrix: ASR × post-process; must-hit terms + WER + latency

Sent full pipeline to Infra Nix for the tester hook.

## CoS: post-process recommendation Nemotron already does punctuation/casing. Add: 1. Optional display regex for um/uh only 2. NeMo GPU-PB word boosting (fleet jargon) 3. On stop: optional Parakeet TDT 0.6B v2 re-decode → **spokenly/cleanup-1** (or Quill 0.8B/2B) with guards 4. Eval matrix: ASR × post-process; must-hit terms + WER + latency Sent full pipeline to Infra Nix for the tester hook.
Contributor

Spike v2 is live (Infra Nix): model picker, record/replay evals, first cleanup path

Same URLs as before. Still Tailscale-only, same transient unit omb-stt-spike and the same tailscale serve on :10443.

  • Web: https://cfx-mgmt.tail8f488.ts.net:10443/ (tabs: Live compare, Eval suite, Models / VRAM)
  • Health: https://cfx-mgmt.tail8f488.ts.net:10443/health now also reports loaded, available, skipped, cleanup, and VRAM.
  • WS: wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=<key>&post=<mode>. It is backward compatible: with no params you get Nemotron and raw text.
  • APIs: GET /api/models, POST /api/models/<key>/load|unload, POST /api/post {text,mode}, /api/evals/*

Live compare

  • You can add as many panels as you want (+ panel). Each panel has its own model dropdown and its own post-process dropdown.
  • One mic stream feeds all panels. The manual 🎤 toggle sends start/stop to every panel.
  • An optional display-only filter strips um/uh and repeats from partials. like/so are never stripped.
  • Each final shows the raw ASR text, the cleaned text, and stop→ASR / stop→final ms.

ASR models (RTX 2060, transformers, all EN; measured on the Barcelona clip)

key mode VRAM Barcelona clip
nemotron (default, preloaded) true streaming, 560 ms 2.36 GiB fp32 words for numbers; adds "uh" and "go go"
parakeet-tdt-v3 finalize on mic-off 1.2 GiB fp16 "35", "minus twenty"
whisper-turbo (large-v3-turbo) re-decode every 1 s 1.5 GiB fp16 clean, digits
distil-v3.5 re-decode every 1 s 1.4 GiB fp16 clean, digits
qwen3-asr-0.6b (fleet hotwords prompt) re-decode every 1 s 1.5 GiB fp16 clean, digits
qwen3-asr-1.7b re-decode every 1 s ~3.4 GiB, evicts everything else clean, digits
kyutai-1b (stt-1b-en_fr) re-decode every 3 s 2.2 GiB fp16 clean, but slow: ~7 s per 11 s of audio

Models load lazily. When VRAM runs short, the least-recently-used idle model is evicted, and Nemotron is evicted last. In practice, Nemotron plus one other model plus the cleanup LLM fit together.

Skipped:

  • Voxtral Mini 4B Realtime: ~8.9 GB fp16 is larger than the 6 GB card. Turing has no bf16, and I did not try 4-bit.
  • WhisperLiveKit: Whisper runs in-process with plain re-decode instead, which avoids a second server and port.
  • Parakeet v2: it ships only as .nemo, so it needs NeMo or sherpa-onnx. I used v3, which has transformers weights. A sherpa-onnx int8 CPU v2 path is still to do.

Eval suite (record → replay)

  • There are 10 prompt cards (your defaults). Each card has must-hit terms, a ⏺ record / ⏹ save toggle, and playback.
  • WAVs are saved to /opt/stt-spike/evals/recordings/<pid>.wav (16 kHz mono). Re-recording keeps the old take as .bak. You can edit the prompts in /opt/stt-spike/evals/prompts.json.
  • Replay runs every saved WAV through the selected ASR models × post modes. You get side-by-side tables per prompt plus a summary with WER (Whisper EN normalizer), must-hit terms, and ms. Runs are saved in evals/runs/.
  • Nothing is recorded yet, so D.H. needs to record the 10 prompts once.

Post-processing (runs on final / mic-off)

raw → regex (um/uh/erm/hmm + repeats) → map (deterministic fleet replace map, evals/replace_map.json: cfx-mgmt, OMB, Tailscale, Forgejo, Nemotron, llama.cpp, nixos-llm, wss://…) → LLM.

  • spokenly (cleanup-1 Q8 GGUF, ~0.96 GB VRAM, llama-server on 127.0.0.1, greedy) is kept warm, so it is the hot path.
  • quill-0.8b and quill-2b (Q4_K_M) are available for A/B. Only one cleanup LLM runs at a time, and switching costs about 1–2 s.
  • Guards: strips "Sure!/Here is" openers, length ratio 0.5–1.6, and ≥60% word overlap (either direction); otherwise it falls back to the map text.
  • Measured stop→final, warm, 11 s sentence:
    • Nemotron + spokenly ~300 ms (ASR 150 + LLM 155)
    • whisper-turbo + spokenly ~450 ms
    • parakeet + spokenly ~930 ms
    • Nemotron + quill-0.8b ~2.4 s cold swap / ~180 ms LLM warm
    • All are well under the 3 s target. Nemotron "uh thirty five … go go … minus twenty" becomes "35 … -20" with spokenly.
  • Not done yet:
    • NeMo GPU-PB word boosting: there is no NeMo on this path (transformers RNNT). The replace map and Qwen3-ASR hotwords stand in for it for now.
    • NeMo ITN: needs pynini, which isn't installed. The LLMs do the digits.
    • Gemma-1B: no cleanup fine-tune chosen.

Undo

/opt/stt-spike/run-v1.sh puts back the original Nemotron-only server on the same port. The v1 files were not touched; there is also a copy in backup-v1/. The v2 code is in /opt/stt-spike/v2/. Nothing is reboot-persistent and there is no nixos-llm change. The llama.cpp store path is GC-rooted at /opt/stt-spike/llama-cpp-gcroot; rm that symlink to release it.

## Spike v2 is live (Infra Nix): model picker, record/replay evals, first cleanup path Same URLs as before. Still Tailscale-only, same transient unit `omb-stt-spike` and the same `tailscale serve` on :10443. - Web: https://cfx-mgmt.tail8f488.ts.net:10443/ (tabs: **Live compare**, **Eval suite**, **Models / VRAM**) - Health: https://cfx-mgmt.tail8f488.ts.net:10443/health now also reports `loaded`, `available`, `skipped`, `cleanup`, and VRAM. - WS: `wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=<key>&post=<mode>`. It is backward compatible: with no params you get Nemotron and raw text. - APIs: `GET /api/models`, `POST /api/models/<key>/load|unload`, `POST /api/post {text,mode}`, `/api/evals/*` ### Live compare - You can add as many panels as you want (`+ panel`). Each panel has its own **model** dropdown and its own **post-process** dropdown. - **One mic stream feeds all panels.** The manual 🎤 toggle sends start/stop to every panel. - An optional display-only filter strips um/uh and repeats from partials. like/so are never stripped. - Each final shows the raw ASR text, the cleaned text, and `stop→ASR` / `stop→final` ms. ### ASR models (RTX 2060, transformers, all EN; measured on the Barcelona clip) | key | mode | VRAM | Barcelona clip | |---|---|---|---| | `nemotron` (default, preloaded) | true streaming, 560 ms | 2.36 GiB fp32 | words for numbers; adds "uh" and "go go" | | `parakeet-tdt-v3` | **finalize on mic-off** | 1.2 GiB fp16 | "35", "minus twenty" | | `whisper-turbo` (large-v3-turbo) | re-decode every 1 s | 1.5 GiB fp16 | clean, digits | | `distil-v3.5` | re-decode every 1 s | 1.4 GiB fp16 | clean, digits | | `qwen3-asr-0.6b` (fleet hotwords prompt) | re-decode every 1 s | 1.5 GiB fp16 | clean, digits | | `qwen3-asr-1.7b` | re-decode every 1 s | ~3.4 GiB, evicts everything else | clean, digits | | `kyutai-1b` (stt-1b-en_fr) | re-decode every 3 s | 2.2 GiB fp16 | clean, but **slow**: ~7 s per 11 s of audio | Models load lazily. When VRAM runs short, the least-recently-used idle model is evicted, and Nemotron is evicted last. In practice, Nemotron plus one other model plus the cleanup LLM fit together. **Skipped:** - Voxtral Mini 4B Realtime: ~8.9 GB fp16 is larger than the 6 GB card. Turing has no bf16, and I did not try 4-bit. - WhisperLiveKit: Whisper runs in-process with plain re-decode instead, which avoids a second server and port. - Parakeet **v2**: it ships only as `.nemo`, so it needs NeMo or sherpa-onnx. I used v3, which has transformers weights. A sherpa-onnx int8 CPU v2 path is still to do. ### Eval suite (record → replay) - There are 10 prompt cards (your defaults). Each card has must-hit terms, a ⏺ record / ⏹ save toggle, and playback. - WAVs are saved to `/opt/stt-spike/evals/recordings/<pid>.wav` (16 kHz mono). Re-recording keeps the old take as `.bak`. You can edit the prompts in `/opt/stt-spike/evals/prompts.json`. - **Replay** runs every saved WAV through the selected ASR models × post modes. You get side-by-side tables per prompt plus a summary with WER (Whisper EN normalizer), must-hit terms, and ms. Runs are saved in `evals/runs/`. - Nothing is recorded yet, so D.H. needs to record the 10 prompts once. ### Post-processing (runs on final / mic-off) `raw` → `regex` (um/uh/erm/hmm + repeats) → `map` (deterministic fleet replace map, `evals/replace_map.json`: cfx-mgmt, OMB, Tailscale, Forgejo, Nemotron, llama.cpp, nixos-llm, wss://…) → LLM. - **`spokenly`** (cleanup-1 Q8 GGUF, ~0.96 GB VRAM, llama-server on 127.0.0.1, greedy) is **kept warm, so it is the hot path.** - `quill-0.8b` and `quill-2b` (Q4_K_M) are available for A/B. Only one cleanup LLM runs at a time, and switching costs about 1–2 s. - Guards: strips "Sure!/Here is" openers, length ratio 0.5–1.6, and ≥60% word overlap (either direction); otherwise it falls back to the `map` text. - Measured **stop→final, warm, 11 s sentence**: - Nemotron + spokenly **~300 ms** (ASR 150 + LLM 155) - whisper-turbo + spokenly ~450 ms - parakeet + spokenly ~930 ms - Nemotron + quill-0.8b ~2.4 s cold swap / ~180 ms LLM warm - All are well under the 3 s target. Nemotron "uh thirty five … go go … minus twenty" becomes "35 … -20" with spokenly. - Not done yet: - NeMo GPU-PB word boosting: there is no NeMo on this path (transformers RNNT). The replace map and Qwen3-ASR hotwords stand in for it for now. - NeMo ITN: needs pynini, which isn't installed. The LLMs do the digits. - Gemma-1B: no cleanup fine-tune chosen. ### Undo `/opt/stt-spike/run-v1.sh` puts back the original Nemotron-only server on the same port. The v1 files were not touched; there is also a copy in `backup-v1/`. The v2 code is in `/opt/stt-spike/v2/`. Nothing is reboot-persistent and there is no nixos-llm change. The llama.cpp store path is GC-rooted at `/opt/stt-spike/llama-cpp-gcroot`; `rm` that symlink to release it.
Contributor

OMB #32 STT eval: full ASR × cleanup batch results (Infra Nix)

D.H.'s 10 recorded prompts (p01–p10, all present, 16 kHz mono) run through the v2 spike on cfx-mgmt (RTX 2060, 6 GB).

How it was run

  • Accuracy: one POST /api/evals/replay run 20261102-144828 (saved in /opt/stt-spike/evals/runs/): 7 ASR × 6 post modes × 10 prompts = 420 cells, 0 errors. Post modes: raw, regex (fillers/repeats only), map (regex + replace_map.json), spokenly (cleanup-1 Q8), quill-0.8b, quill-2b.
  • Latency: each WAV streamed in real time (100 ms chunks) over ws /ws?model=…&post=spokenly, then stop. We used the server's own stop_to_asr_ms / stop_to_final_ms numbers. qwen3-asr-1.7b had to run with post=map (see VRAM below). The ASR text from the live run matched the replay text, so the two runs agree.
  • Metrics:
    • wCER: CER on lower-case alphanumerics only, against a written-form reference (OpenMausBot issue 32 … cfx-mgmt, T3 on port 3773, wss://cfx-mgmt.tail8f488.ts.net:10443/ws, …). This is the number that matters for coding dictation, because a spelled-out "thirty seven" counts as wrong. Lower is better.
    • hits: the suite's must-hit fleet terms, out of 42.
    • Suite WER: the existing whisper-normalized WER against the spoken-form text in prompts.json. It rewards spelled-out output, so it is shown only as secondary.

1. wCER / term hits per ASR × post mode (accuracy from replay; latency from the live run)

ASR live stop→ASR med (ms) raw regex map spokenly quill-0.8b quill-2b
distil-v3.5 230 0.095 / 30 0.095 / 30 0.063 / 35 0.053 / 36 0.063 / 35 0.067 / 36
whisper-turbo 250 0.117 / 29 0.117 / 29 0.073 / 35 0.060 / 34 0.073 / 35 0.061 / 35
qwen3-asr-1.7b 962 0.220 / 29 0.226 / 29 0.214 / 31 0.084 / 36 0.106 / 34 0.175 / 33
qwen3-asr-0.6b 670 0.367 / 26 0.370 / 26 0.349 / 27 0.111 / 35 0.253 / 28 0.256 / 29
nemotron 138 0.478 / 16 0.483 / 16 0.447 / 21 0.112 / 30 0.333 / 23 0.250 / 27
parakeet-tdt-v3 129 0.323 / 20 0.323 / 20 0.316 / 22 0.165 / 23 0.220 / 23 0.200 / 24
kyutai-1b 7506 0.198 / 23 0.203 / 23 0.178 / 25 0.197 / 25 0.178 / 25 0.158 / 25

2. Latency and secondary metrics

ASR suite WER raw→map→spokenly written WER raw→spokenly replay ASR ms (batch) spokenly ms q0.8b ms q2b ms live stop→final med / max (ms)
distil-v3.5 0.357→0.333→0.356 0.299→0.236 242 115 177 246 344 / 477 (spokenly)
whisper-turbo 0.317→0.305→0.329 0.354→0.231 252 112 162 227 369 / 537 (spokenly)
qwen3-asr-1.7b 0.285→0.277→0.285 0.384→0.248 742 234 434 776 962 / 1802 (map, no LLM)
qwen3-asr-0.6b 0.267→0.275→0.293 0.513→0.270 705 108 162 236 780 / 1354 (spokenly)
nemotron 0.308→0.291→0.349 0.687→0.294 1055* 105 164 230 264 / 391 (spokenly)
parakeet-tdt-v3 0.380→0.358→0.398 0.563→0.431 140 114 170 236 274 / 493 (spokenly)
kyutai-1b 0.476→0.487→0.499 0.578→0.541 6147 119 178 247 7816 / 14834 (spokenly)

* The replay pushes the whole file through Nemotron's streaming path after the fact. When live, it has already processed the audio by the time you hit stop, so stop→ASR is only about 140 ms.

Every combo except kyutai finishes well under the 3 s target (worst non-kyutai max: qwen-1.7b at 1.8 s).

3. Qualitative notes

  • Digits: whisper-turbo and distil output digits on their own (3733, 6768, 8810, 924, 10443 in p03). Nemotron, qwen-0.6b and qwen-1.7b spell numbers out ("thirty seven thirty three"), and parakeet makes up time formats (.37:33, 67:68). spokenly fixes most of this, which is why Nemotron's wCER drops from 0.478 to 0.112.
  • Fleet terms: qwen (hotword prompt) and whisper-family get OpenMausBot / cfx-mgmt / wss://… best. Nemotron mishears: "open mouse button", "rock bot", "Nixos alarm", "look back", "Mimotron", "dunak". Parakeet says "O and B", "tillskale", "cfx-mgtmt".
  • p09 (URL): qwen-1.7b gets almost all of it raw (wss://cfx-mgmt.tail8f488.s.net:10443/ws, only the "t" of "ts.net" is missing). Whisper-family spells it out and spokenly/quill only partly rebuild it.
  • Hallucinations: kyutai-1b produced Portuguese on p02 ("Companhão ao tercírios ou MB…") and is about 7–15 s per utterance, so it is rejected. Whisper/distil: "Wirephone", "Lubebeck", "strip M and R" (for "um and uh").
  • spokenly side effects: it reliably removes the word "like" ("Tailscale like Orca" → "Tailscale Orca", "on off like Grok Bot" → "on off robot"). Once it dropped real content (nemotron p04: "listens on 8810; pair via 8811" became "listens on 88.11"). The guard reported ok on both. A guard and prompt tweak is needed.
  • Quill: 0.8B is about 165 ms and 2B about 230 ms, so both are cheap. Quill-2B gave whisper-turbo the best written WER (0.178) and keeps "like", but Quill rarely converts numbers on qwen/nemotron output, so spokenly is the better all-rounder.
  • regex alone did nothing: D.H. read cleanly, with no fillers. The only hit is the literal "um and uh" in p10, which regex strips as designed.

4. Ranking for phone/OMB (accuracy vs. latency, target stop→final < 3 s)

  1. distil-v3.5 + spokenly: best wCER 0.053, 36/42 hits, 344 ms median.
  2. whisper-turbo + spokenly: 0.060, 34/42, 369 ms. whisper-turbo + quill-2b is about the same (0.061, 35/42, ~480 ms estimated) and keeps "like".
  3. distil-v3.5 + map (no LLM): 0.063, 35/42, ~230 ms. The no-LLM fallback with zero risk of dropped content.
  4. qwen3-asr-1.7b + spokenly: 0.084, 36/42, best on the raw URL. But it is about 1.2 s and can't sit in VRAM next to the cleanup LLM (live load failed). Not practical on the 2060.
  5. qwen3-asr-0.6b + spokenly: 0.111, 35/42, 780 ms.
  6. nemotron + spokenly: 0.112, 30/42, 264 ms. The only true streaming model with good live partials, but the worst raw accuracy on jargon and digits.
  7. parakeet-tdt-v3 + spokenly: 0.165, 274 ms.
  8. kyutai-1b: rejected (7.8 s median, hallucinations).

5. Recommendation (phone/OMB default)

Final transcript: distil-v3.5 decoded on mic-off, then spokenly cleanup. It was the most accurate combo on fleet coding speech, with numbers as digits, at about 0.35 s stop→final. That is roughly 10× under the 3 s budget, and the models fit alongside each other on the 2060.

If the phone needs live partials, keep Nemotron for partials only and re-decode with distil-v3.5 + spokenly on stop. We did not run that hybrid. Estimates: about 2.4 + ~1.5 + 0.9 GB ≈ 4.8 of 5.7 GB VRAM, and about 350 ms stop→final.

Follow-ups before this becomes the default:

  • (a) Fix spokenly dropping "like" and content: tighten the guard (count digits and tokens) and tweak the prompt.
  • (b) Add to replace_map: Nemotron and whisper mishears ("rock bot|robot" → Grok Bot only in context, "look back|Lubebeck" → loopback, "Wirephone" → wire phone).
  • (c) Get a second recording take or speaker. n=10 from one take is small.

6. Run notes

  • No restart needed. The omb-stt-spike v2 unit stayed up the whole time.
  • LRU eviction worked through the whole matrix.
  • qwen3-asr-1.7b needs about 4.7 GB. The live run with the cleanup LLM loaded failed ("free 4194 MiB < ~4700"). It worked after POST /api/cleanup/stop, and the cleanup LLM was restarted afterwards.
  • Left healthy: nemotron loaded, spokenly warm, https://cfx-mgmt.tail8f488.ts.net:10443/health → 200.
  • Sunshine/Immich not touched. No downloads.
## OMB #32 STT eval: full ASR × cleanup batch results (Infra Nix) D.H.'s 10 recorded prompts (p01–p10, all present, 16 kHz mono) run through the v2 spike on cfx-mgmt (RTX 2060, 6 GB). **How it was run** - **Accuracy:** one `POST /api/evals/replay` run `20261102-144828` (saved in `/opt/stt-spike/evals/runs/`): **7 ASR × 6 post modes × 10 prompts = 420 cells, 0 errors**. Post modes: `raw`, `regex` (fillers/repeats only), `map` (regex + `replace_map.json`), `spokenly` (cleanup-1 Q8), `quill-0.8b`, `quill-2b`. - **Latency:** each WAV streamed in real time (100 ms chunks) over `ws /ws?model=…&post=spokenly`, then `stop`. We used the server's own `stop_to_asr_ms` / `stop_to_final_ms` numbers. qwen3-asr-1.7b had to run with `post=map` (see VRAM below). The ASR text from the live run matched the replay text, so the two runs agree. - **Metrics:** - **wCER**: CER on lower-case alphanumerics only, against a *written-form* reference (`OpenMausBot issue 32 … cfx-mgmt`, `T3 on port 3773`, `wss://cfx-mgmt.tail8f488.ts.net:10443/ws`, …). This is the number that matters for coding dictation, because a spelled-out "thirty seven" counts as wrong. **Lower is better.** - **hits**: the suite's must-hit fleet terms, out of 42. - **Suite WER**: the existing whisper-normalized WER against the spoken-form text in `prompts.json`. It rewards spelled-out output, so it is shown only as secondary. ### 1. wCER / term hits per ASR × post mode (accuracy from replay; latency from the live run) | ASR | live stop→ASR med (ms) | raw | regex | map | spokenly | quill-0.8b | quill-2b | |---|---:|---:|---:|---:|---:|---:|---:| | distil-v3.5 | 230 | 0.095 / 30 | 0.095 / 30 | 0.063 / 35 | **0.053 / 36** | 0.063 / 35 | 0.067 / 36 | | whisper-turbo | 250 | 0.117 / 29 | 0.117 / 29 | 0.073 / 35 | 0.060 / 34 | 0.073 / 35 | 0.061 / 35 | | qwen3-asr-1.7b | 962 | 0.220 / 29 | 0.226 / 29 | 0.214 / 31 | 0.084 / 36 | 0.106 / 34 | 0.175 / 33 | | qwen3-asr-0.6b | 670 | 0.367 / 26 | 0.370 / 26 | 0.349 / 27 | 0.111 / 35 | 0.253 / 28 | 0.256 / 29 | | nemotron | 138 | 0.478 / 16 | 0.483 / 16 | 0.447 / 21 | 0.112 / 30 | 0.333 / 23 | 0.250 / 27 | | parakeet-tdt-v3 | 129 | 0.323 / 20 | 0.323 / 20 | 0.316 / 22 | 0.165 / 23 | 0.220 / 23 | 0.200 / 24 | | kyutai-1b | 7506 | 0.198 / 23 | 0.203 / 23 | 0.178 / 25 | 0.197 / 25 | 0.178 / 25 | 0.158 / 25 | ### 2. Latency and secondary metrics | ASR | suite WER raw→map→spokenly | written WER raw→spokenly | replay ASR ms (batch) | spokenly ms | q0.8b ms | q2b ms | **live stop→final med / max (ms)** | |---|---|---|---:|---:|---:|---:|---| | distil-v3.5 | 0.357→0.333→0.356 | 0.299→0.236 | 242 | 115 | 177 | 246 | **344 / 477** (spokenly) | | whisper-turbo | 0.317→0.305→0.329 | 0.354→0.231 | 252 | 112 | 162 | 227 | 369 / 537 (spokenly) | | qwen3-asr-1.7b | 0.285→0.277→0.285 | 0.384→0.248 | 742 | 234 | 434 | 776 | 962 / 1802 (map, no LLM) | | qwen3-asr-0.6b | 0.267→0.275→0.293 | 0.513→0.270 | 705 | 108 | 162 | 236 | 780 / 1354 (spokenly) | | nemotron | 0.308→0.291→0.349 | 0.687→0.294 | 1055* | 105 | 164 | 230 | **264 / 391** (spokenly) | | parakeet-tdt-v3 | 0.380→0.358→0.398 | 0.563→0.431 | 140 | 114 | 170 | 236 | 274 / 493 (spokenly) | | kyutai-1b | 0.476→0.487→0.499 | 0.578→0.541 | 6147 | 119 | 178 | 247 | 7816 / 14834 (spokenly) | \* The replay pushes the whole file through Nemotron's streaming path after the fact. When live, it has already processed the audio by the time you hit stop, so stop→ASR is only about 140 ms. Every combo except kyutai finishes well under the 3 s target (worst non-kyutai max: qwen-1.7b at 1.8 s). ### 3. Qualitative notes - **Digits:** whisper-turbo and distil output digits on their own (`3733`, `6768`, `8810`, `924`, `10443` in p03). Nemotron, qwen-0.6b and qwen-1.7b spell numbers out ("thirty seven thirty three"), and parakeet makes up time formats (`.37:33`, `67:68`). spokenly fixes most of this, which is why Nemotron's wCER drops from 0.478 to 0.112. - **Fleet terms:** qwen (hotword prompt) and whisper-family get `OpenMausBot` / `cfx-mgmt` / `wss://…` best. Nemotron mishears: "open mouse button", "rock bot", "Nixos alarm", "look back", "Mimotron", "dunak". Parakeet says "O and B", "tillskale", "cfx-mgtmt". - **p09 (URL):** qwen-1.7b gets almost all of it raw (`wss://cfx-mgmt.tail8f488.s.net:10443/ws`, only the "t" of "ts.net" is missing). Whisper-family spells it out and spokenly/quill only partly rebuild it. - **Hallucinations:** kyutai-1b produced **Portuguese** on p02 ("Companhão ao tercírios ou MB…") and is about 7–15 s per utterance, so it is rejected. Whisper/distil: "Wirephone", "Lubebeck", "strip M and R" (for "um and uh"). - **spokenly side effects:** it reliably removes the word **"like"** ("Tailscale like Orca" → "Tailscale Orca", "on off like Grok Bot" → "on off robot"). Once it dropped real content (nemotron p04: "listens on 8810; pair via 8811" became "listens on 88.11"). The guard reported `ok` on both. A guard and prompt tweak is needed. - **Quill:** 0.8B is about 165 ms and 2B about 230 ms, so both are cheap. Quill-2B gave whisper-turbo the best written WER (0.178) and keeps "like", but Quill rarely converts numbers on qwen/nemotron output, so spokenly is the better all-rounder. - **regex alone** did nothing: D.H. read cleanly, with no fillers. The only hit is the literal "um and uh" in p10, which regex strips as designed. ### 4. Ranking for phone/OMB (accuracy vs. latency, target stop→final < 3 s) 1. **distil-v3.5 + spokenly**: best wCER 0.053, 36/42 hits, 344 ms median. 2. **whisper-turbo + spokenly**: 0.060, 34/42, 369 ms. **whisper-turbo + quill-2b** is about the same (0.061, 35/42, ~480 ms estimated) and keeps "like". 3. **distil-v3.5 + map (no LLM)**: 0.063, 35/42, ~230 ms. The no-LLM fallback with zero risk of dropped content. 4. **qwen3-asr-1.7b + spokenly**: 0.084, 36/42, best on the raw URL. But it is about 1.2 s and **can't sit in VRAM next to the cleanup LLM** (live load failed). Not practical on the 2060. 5. **qwen3-asr-0.6b + spokenly**: 0.111, 35/42, 780 ms. 6. **nemotron + spokenly**: 0.112, 30/42, 264 ms. The only true streaming model with good live partials, but the worst raw accuracy on jargon and digits. 7. parakeet-tdt-v3 + spokenly: 0.165, 274 ms. 8. kyutai-1b: rejected (7.8 s median, hallucinations). ### 5. Recommendation (phone/OMB default) **Final transcript: `distil-v3.5` decoded on mic-off, then `spokenly` cleanup.** It was the most accurate combo on fleet coding speech, with numbers as digits, at about 0.35 s stop→final. That is roughly 10× under the 3 s budget, and the models fit alongside each other on the 2060. If the phone needs live partials, keep **Nemotron for partials only** and re-decode with distil-v3.5 + spokenly on stop. We did *not* run that hybrid. Estimates: about 2.4 + ~1.5 + 0.9 GB ≈ 4.8 of 5.7 GB VRAM, and about 350 ms stop→final. Follow-ups before this becomes the default: - (a) Fix spokenly dropping "like" and content: tighten the guard (count digits and tokens) and tweak the prompt. - (b) Add to `replace_map`: Nemotron and whisper mishears ("rock bot|robot" → Grok Bot only in context, "look back|Lubebeck" → loopback, "Wirephone" → wire phone). - (c) Get a second recording take or speaker. n=10 from one take is small. ### 6. Run notes - No restart needed. The `omb-stt-spike` v2 unit stayed up the whole time. - LRU eviction worked through the whole matrix. - qwen3-asr-1.7b needs about 4.7 GB. The live run with the cleanup LLM loaded failed ("free 4194 MiB < ~4700"). It worked after `POST /api/cleanup/stop`, and the cleanup LLM was restarted afterwards. - Left healthy: nemotron loaded, spokenly warm, `https://cfx-mgmt.tail8f488.ts.net:10443/health` → 200. - Sunshine/Immich not touched. No downloads.
Contributor

OMB #32 hybrid STT spike: Nemotron live partials, then distil-v3.5 + spokenly on stop (Infra Nix)

Follow-up to the full eval (#issuecomment-21956). Same 10 recordings (p01–p10), same written-form wCER / 42-term metrics, same live method: each WAV streamed in real time (100 ms chunks) over /ws, then stop; server-side stop_to_final_ms. 2 reps × 10 prompts × 2 paths = 40 live sessions, hybrid and pure interleaved (order flipped on rep 2), 0 errors, 0 OOM, no evictions during the run. Both paths ran with the same GPU state: Nemotron + distil-v3.5 + spokenly all resident.

How hybrid is wired (real server path, not a harness-only mock)

/opt/stt-spike/v2/server.py (+~70 lines; backup server.py.pre-hybrid; restarted omb-stt-spike):

  • New WS model key: /ws?model=hybrid&post=spokenly. It loads nemotron and distil-v3.5 together (each protected from LRU eviction by the other); env STT_HYBRID_LIVE / STT_HYBRID_FINAL.
  • While the mic is on: Nemotron streams partial messages exactly as before.
  • On stop: the unpadded buffered PCM is re-decoded by distil-v3.5 and then run through postprocess(spokenly), and final is emitted. The final message adds hybrid:true, live_model, final_model, and live_text_at_stop. Nemotron drains without the 1.5 s tail pad in parallel, and late partials after final are suppressed. The session holds both backends active until the drain ends, so no unload race.
  • Other models/paths are unchanged (pure distil final == prior replay text 10/10).
  • Harness: /opt/stt-spike/evals/hybrid_harness.py. Raw: /opt/stt-spike/evals/runs/hybrid-live-20261102-1524.json.
  • Not done: the web UI dropdown doesn't list hybrid yet (WS/phone clients can use it now).

Results (live, n=20 sessions per path; accuracy from rep 1, reps were identical)

Path wCER (post) raw ASR wCER term hits stop→ASR med stop→final med / p90 / max partials/utt (med) VRAM used (nvidia-smi)
hybrid: Nemotron partials → distil-v3.5 + spokenly 0.053 0.095 36/42 294 ms 396 / 450 / 546 ms 13.5 (true streaming) 5092 / 6144 MiB
pure distil-v3.5 + spokenly 0.053 0.095 36/42 229 ms 338 / 385 / 460 ms 8.5 (1 s re-decode) 5092 / 6144 MiB
prior (#21956): pure distil + spokenly 0.053 0.095 36/42 230 344 / 477
prior: Nemotron + spokenly 0.112 0.478 30/42 138 264 / 391
  • Final text is identical: hybrid final == pure distil final on 20/20 raw and 20/20 post-spokenly outputs. Same wCER and hits as the earlier replay.
  • Latency cost of hybrid: about +60 ms median (396 vs 338 ms) and +86 ms max. This comes from the distil decode sharing the GPU with Nemotron's final drain chunk. It's still about 7× under the 3 s budget. The drain could be cancelled on stop to recover most of that if needed.
  • VRAM: steady 5092 MiB of 6144 with everything resident: Nemotron +2359 MiB (fp32), distil +1443 MiB, spokenly llama-server ~960 MiB, plus CUDA context. torch mem_get_info reports 646 MiB free of 5738. nvidia-smi didn't rise during inference (100 ms sampling, peak = idle = 5092) because the caching allocator already holds the working set. The prior estimate of 4.8 / 5.7 GB was about 0.3 GB optimistic. It fits, but with no room for a 4th model.

Qualitative

  • Partials are useful as feedback, not as text. Nemotron gives true incremental text (first word about 1.7–2.8 s into the clip, then a new piece every ~0.5–0.7 s). But the live text at stop has wCER 0.53 and only 13/42 hits: spelled-out numbers, "open mouse button", "Mimotron", "Nixos alarm", "look back", "Dunak". It also lags the last ~0.5–1 s, because the tail isn't padded on stop. That's fine: within ~0.4 s it is replaced by the distil final, which is what gets inserted.
  • Final matches pure distil exactly. Hybrid has no accuracy cost.
  • No OOM, thrashing, or unload races in 40 sessions plus warm-up. One caveat: a leftover web-UI tab auto-reconnected a whisper-turbo panel when the service restarted. That loaded whisper-turbo, and LRU then evicted it when hybrid loaded distil (log: evicting whisper-turbo to fit distil-v3.5 (free 648 MiB)). With only ~0.6 GB headroom, any other model load evicts an idle hybrid model. Phone/OMB production should pin STT_PRELOAD=nemotron,distil-v3.5 and drop the multi-model compare/LRU (or exclude the pair from it). Concurrent sessions were not tested; distil decodes are serialized by its lock.
  • Leftover issues are unchanged and apply to both paths: spokenly still drops "like" in p03 ("Tailscale Orca") while keeping it in p07, and distil mishears ("Company on out" for companion auth, "Four word", "Pervia", "rockbot", "strip M and R", cfxmgmt…s.net/10443/WS). These need the guard/prompt and replace_map follow-ups (a)/(b) from #21956. Note that in p07 hybrid also outputs "rockbot", not Grok Bot.

Verdict

GO for hybrid as the phone/OMB path, with conditions. It gives the same final accuracy as the best combo (wCER 0.053, 36/42) at 0.40 s stop→final, and the phone gets real streaming partials. Its costs are +60 ms and ~1.4 GB VRAM, which fits at 5.1 / 6 GB.
Conditions / blockers:

  1. Pin both ASR models (no LRU) on the serving instance.
  2. Fix the spokenly content-drop guard (a) before shipping.
  3. Present partials as provisional/grey in the UI, since they're Nemotron-quality.
  4. n=10 from one take: second speaker/take (c) still open.

Spike left healthy: omb-stt-spike active, https://cfx-mgmt.tail8f488.ts.net:10443/health → 200, loaded: nemotron + distil-v3.5, spokenly warm. Sunshine/Immich untouched, no downloads, temp files cleaned.

## OMB #32 hybrid STT spike: Nemotron live partials, then distil-v3.5 + spokenly on stop (Infra Nix) Follow-up to the full eval (#issuecomment-21956). Same 10 recordings (p01–p10), same written-form wCER / 42-term metrics, same live method: each WAV streamed in real time (100 ms chunks) over `/ws`, then `stop`; server-side `stop_to_final_ms`. **2 reps × 10 prompts × 2 paths = 40 live sessions**, hybrid and pure interleaved (order flipped on rep 2), **0 errors, 0 OOM, no evictions during the run.** Both paths ran with the same GPU state: Nemotron + distil-v3.5 + spokenly all resident. ### How hybrid is wired (real server path, not a harness-only mock) `/opt/stt-spike/v2/server.py` (+~70 lines; backup `server.py.pre-hybrid`; restarted `omb-stt-spike`): - New WS model key: **`/ws?model=hybrid&post=spokenly`**. It loads `nemotron` and `distil-v3.5` together (each protected from LRU eviction by the other); env `STT_HYBRID_LIVE` / `STT_HYBRID_FINAL`. - While the mic is on: Nemotron streams `partial` messages exactly as before. - On `stop`: the **unpadded** buffered PCM is re-decoded by distil-v3.5 and then run through `postprocess(spokenly)`, and `final` is emitted. The `final` message adds `hybrid:true`, `live_model`, `final_model`, and `live_text_at_stop`. Nemotron drains without the 1.5 s tail pad in parallel, and late partials after `final` are suppressed. The session holds both backends `active` until the drain ends, so no unload race. - Other models/paths are unchanged (pure distil final == prior replay text 10/10). - Harness: `/opt/stt-spike/evals/hybrid_harness.py`. Raw: `/opt/stt-spike/evals/runs/hybrid-live-20261102-1524.json`. - Not done: the web UI dropdown doesn't list `hybrid` yet (WS/phone clients can use it now). ### Results (live, n=20 sessions per path; accuracy from rep 1, reps were identical) | Path | wCER (post) | raw ASR wCER | term hits | stop→ASR med | **stop→final med / p90 / max** | partials/utt (med) | VRAM used (nvidia-smi) | |---|---:|---:|---:|---:|---:|---:|---:| | **hybrid**: Nemotron partials → distil-v3.5 + spokenly | **0.053** | 0.095 | **36/42** | 294 ms | **396 / 450 / 546 ms** | 13.5 (true streaming) | 5092 / 6144 MiB | | pure distil-v3.5 + spokenly | **0.053** | 0.095 | **36/42** | 229 ms | 338 / 385 / 460 ms | 8.5 (1 s re-decode) | 5092 / 6144 MiB | | _prior (#21956)_: pure distil + spokenly | 0.053 | 0.095 | 36/42 | 230 | 344 / 477 | | | | _prior_: Nemotron + spokenly | 0.112 | 0.478 | 30/42 | 138 | 264 / 391 | | | - **Final text is identical:** hybrid final == pure distil final on **20/20 raw and 20/20 post-spokenly** outputs. Same wCER and hits as the earlier replay. - **Latency cost of hybrid: about +60 ms median** (396 vs 338 ms) and +86 ms max. This comes from the distil decode sharing the GPU with Nemotron's final drain chunk. It's still about 7× under the 3 s budget. The drain could be cancelled on stop to recover most of that if needed. - **VRAM:** steady **5092 MiB of 6144** with everything resident: Nemotron +2359 MiB (fp32), distil +1443 MiB, spokenly llama-server ~960 MiB, plus CUDA context. torch `mem_get_info` reports **646 MiB free of 5738**. nvidia-smi didn't rise during inference (100 ms sampling, peak = idle = 5092) because the caching allocator already holds the working set. The prior estimate of 4.8 / 5.7 GB was about 0.3 GB optimistic. It fits, but with **no room for a 4th model**. ### Qualitative - **Partials are useful as feedback, not as text.** Nemotron gives true incremental text (first word about 1.7–2.8 s into the clip, then a new piece every ~0.5–0.7 s). But the live text at stop has wCER 0.53 and only 13/42 hits: spelled-out numbers, "open mouse button", "Mimotron", "Nixos alarm", "look back", "Dunak". It also lags the last ~0.5–1 s, because the tail isn't padded on stop. That's fine: within ~0.4 s it is replaced by the distil final, which is what gets inserted. - **Final matches pure distil exactly.** Hybrid has no accuracy cost. - **No OOM, thrashing, or unload races** in 40 sessions plus warm-up. One caveat: a leftover web-UI tab auto-reconnected a `whisper-turbo` panel when the service restarted. That loaded whisper-turbo, and LRU then evicted it when hybrid loaded distil (log: `evicting whisper-turbo to fit distil-v3.5 (free 648 MiB)`). With only ~0.6 GB headroom, **any other model load evicts an idle hybrid model.** Phone/OMB production should pin `STT_PRELOAD=nemotron,distil-v3.5` and drop the multi-model compare/LRU (or exclude the pair from it). Concurrent sessions were not tested; distil decodes are serialized by its lock. - Leftover issues are unchanged and apply to both paths: spokenly still drops "like" in p03 ("Tailscale Orca") while keeping it in p07, and distil mishears ("Company on out" for companion auth, "Four word", "Pervia", "rockbot", "strip M and R", `cfxmgmt…s.net/10443/WS`). These need the guard/prompt and `replace_map` follow-ups (a)/(b) from #21956. Note that in p07 hybrid also outputs "rockbot", not Grok Bot. ### Verdict **GO for hybrid as the phone/OMB path, with conditions.** It gives the same final accuracy as the best combo (wCER 0.053, 36/42) at 0.40 s stop→final, and the phone gets real streaming partials. Its costs are +60 ms and ~1.4 GB VRAM, which fits at 5.1 / 6 GB. Conditions / blockers: 1. Pin both ASR models (no LRU) on the serving instance. 2. Fix the spokenly content-drop guard (a) before shipping. 3. Present partials as provisional/grey in the UI, since they're Nemotron-quality. 4. n=10 from one take: second speaker/take (c) still open. Spike left healthy: `omb-stt-spike` active, `https://cfx-mgmt.tail8f488.ts.net:10443/health` → 200, loaded: nemotron + distil-v3.5, spokenly warm. Sunshine/Immich untouched, no downloads, temp files cleaned.
Contributor

OMB #32: default locked = hybrid (Infra Nix)

D.H. locked the phone/OMB STT default to hybrid: Nemotron live partials → on stop, distil-v3.5 re-decodes the buffered PCM, then spokenly cleanup. Follows the hybrid spike in #issuecomment-21958.

  • Default: /ws with no model= gives hybrid; with no post=, hybrid uses spokenly.
  • Pins: Nemotron + distil-v3.5 load at startup and are never LRU-evicted (STT_PIN). Another big model can't swap them out. A repin loop brings them back if they ever go missing.
  • UI: "★ Hybrid [default]" entry in the Live compare dropdown; default panels are hybrid+spokenly and nemotron+raw.
  • Provisional partials: WS partials carry provisional:true, partial_model:"nemotron"; the final carries provisional:false, replaces_partials:true. The UI shows partials in italics marked "provisional · final replaces". Live text is Nemotron; the final replaces it.
  • Smoke p01: stop→final ~460–530 ms; spokenly "OpenMausBot issue 32 shared real-time English STT on cfx-mgmt".
  • Deferred: spokenly "like" polish is a separate small fix.
## OMB #32: default locked = hybrid (Infra Nix) D.H. locked the phone/OMB STT default to **hybrid**: Nemotron live partials → on stop, distil-v3.5 re-decodes the buffered PCM, then spokenly cleanup. Follows the hybrid spike in #issuecomment-21958. - **Default:** `/ws` with no `model=` gives `hybrid`; with no `post=`, hybrid uses `spokenly`. - **Pins:** Nemotron + distil-v3.5 load at startup and are never LRU-evicted (`STT_PIN`). Another big model can't swap them out. A repin loop brings them back if they ever go missing. - **UI:** "★ Hybrid [default]" entry in the Live compare dropdown; default panels are hybrid+spokenly and nemotron+raw. - **Provisional partials:** WS partials carry `provisional:true, partial_model:"nemotron"`; the final carries `provisional:false, replaces_partials:true`. The UI shows partials in italics marked "provisional · final replaces". Live text is Nemotron; the final replaces it. - Smoke p01: stop→final ~460–530 ms; spokenly "OpenMausBot issue 32 shared real-time English STT on cfx-mgmt". - **Deferred:** spokenly "like" polish is a separate small fix.
Contributor

Nemotron live partials clipping the last word: cause and fix (pause flush at ~1 s)

Cause. This was not VAD or endpointing. The Nemotron stream path in backends.py (Nemotron.stream) passed its tokens through HF TextIteratorStreamer. TextStreamer.put only releases text up to the last space (text[print_len : text.rfind(" ") + 1]), so the trailing word is held back until the next word's ▁ token shows up. In practice the partial lagged one word behind until mic-off, when streamer.end() released the rest. That is the "waiting for me to continue" feel. The RNNT itself had already decoded the word: the UI streams PCM continuously (no client VAD), so ~560 ms chunks plus lookahead gave it enough right context. The streamer just never showed that word.

Fix (deployed, omb-stt-spike restarted).

  • backends.py: added _FullStreamer, a subclass of TextIteratorStreamer. On every put it also reports the full decoded hypothesis (trailing word included) via a new on_full callback. Nemotron.stream(..., on_full=None) keeps its old behaviour when the callback is absent.
  • server.py Session: added a pause detector (_pause_loop, 50 ms tick). It looks for trailing silence in the session buffer using 20 ms RMS below max(STT_PAUSE_RMS, STT_PAUSE_REL × session peak). After 1000 ms of silence it sends a provisional partial with the full hypothesis and "pause_flush": true. Tokens that arrive while paused are also flushed right away. Partials never shrink below an already-flushed text, so the last word doesn't blink out when speech resumes. The hybrid final now includes pause_flushes.
  • If a client stops sending PCM while the mic is on (gated mic), after 1000 ms the server appends 1.2 s of zeros once (blank right context) and treats the session as paused, so the RNNT can still emit the last word.
  • This only touches Nemotron (hybrid live and plain model=nemotron). Voxtral, distil final, hybrid default and pins are unchanged.

Knobs (env vars): STT_PAUSE_FLUSH_MS=1000, STT_PARTIAL_TAIL=pause (always = never hold the trailing word; word = legacy behaviour), STT_PAUSE_RMS=0.006, STT_PAUSE_REL=0.08, STT_STALL_PAD_S=1.2 (0 = off). Backups: *.pre-pauseflush.

Before/after. Replay of p01–p10 over ws ?model=hybrid in real time: each WAV is cut at speech end + 50 ms, followed by 2 s of streamed silence, then stop.

last word in live partial @ +1.0 s @ +2.0 s (still mic-on) time to last word
before 0/10 0/10 only after stop (~2.01–2.03 s, i.e. at mic-off)
after 10/10* 10/10 912–981 ms after speech end

*The scorer reported 8/10. The two misses are scoring artifacts from number/hyphen normalization: p01 "CFX MGMT" vs final "CFX-MGMT", p03 "sixty eight" vs "6768". Both partials do contain the last word.

Examples (+1.0 s, mic still on): p08 "…after CI is" → "…after CI is green"; p06 "…millisecond look" → "…millisecond look ahead"; p10 "…expand" → "…expand numbers".

  • Plain model=nemotron: 2/2 (972 / 981 ms).
  • Client that stops sending PCM: 3/3 by 1.03–1.09 s.

Separately, Nemotron also gets some words wrong (e.g. p07 "smarter detection" vs "smart turn detection"). That is model accuracy and not part of this fix. distil-v3.5 still replaces the partial on stop.

**Nemotron live partials clipping the last word: cause and fix (pause flush at ~1 s)** **Cause.** This was not VAD or endpointing. The Nemotron stream path in `backends.py` (`Nemotron.stream`) passed its tokens through HF `TextIteratorStreamer`. `TextStreamer.put` only releases text up to the last space (`text[print_len : text.rfind(" ") + 1]`), so the trailing word is held back until the *next* word's `▁` token shows up. In practice the partial lagged one word behind until mic-off, when `streamer.end()` released the rest. That is the "waiting for me to continue" feel. The RNNT itself had already decoded the word: the UI streams PCM continuously (no client VAD), so ~560 ms chunks plus lookahead gave it enough right context. The streamer just never showed that word. **Fix (deployed, `omb-stt-spike` restarted).** - `backends.py`: added `_FullStreamer`, a subclass of TextIteratorStreamer. On every `put` it also reports the full decoded hypothesis (trailing word included) via a new `on_full` callback. `Nemotron.stream(..., on_full=None)` keeps its old behaviour when the callback is absent. - `server.py` `Session`: added a pause detector (`_pause_loop`, 50 ms tick). It looks for trailing silence in the session buffer using 20 ms RMS below `max(STT_PAUSE_RMS, STT_PAUSE_REL × session peak)`. After **1000 ms** of silence it sends a provisional partial with the full hypothesis and `"pause_flush": true`. Tokens that arrive while paused are also flushed right away. Partials never shrink below an already-flushed text, so the last word doesn't blink out when speech resumes. The hybrid final now includes `pause_flushes`. - If a client stops sending PCM while the mic is on (gated mic), after 1000 ms the server appends 1.2 s of zeros once (blank right context) and treats the session as paused, so the RNNT can still emit the last word. - This only touches Nemotron (hybrid live and plain `model=nemotron`). Voxtral, distil final, hybrid default and pins are unchanged. **Knobs (env vars):** `STT_PAUSE_FLUSH_MS=1000`, `STT_PARTIAL_TAIL=pause` (`always` = never hold the trailing word; `word` = legacy behaviour), `STT_PAUSE_RMS=0.006`, `STT_PAUSE_REL=0.08`, `STT_STALL_PAD_S=1.2` (0 = off). Backups: `*.pre-pauseflush`. **Before/after.** Replay of p01–p10 over `ws ?model=hybrid` in real time: each WAV is cut at speech end + 50 ms, followed by 2 s of streamed silence, then stop. | | last word in live partial @ +1.0 s | @ +2.0 s (still mic-on) | time to last word | |---|---|---|---| | before | **0/10** | **0/10** | only after stop (~2.01–2.03 s, i.e. at mic-off) | | after | **10/10**\* | 10/10 | **912–981 ms** after speech end | \*The scorer reported 8/10. The two misses are scoring artifacts from number/hyphen normalization: p01 "CFX MGMT" vs final "CFX-MGMT", p03 "sixty eight" vs "6768". Both partials do contain the last word. Examples (+1.0 s, mic still on): p08 "…after CI is" → "…after CI is **green**"; p06 "…millisecond look" → "…millisecond look **ahead**"; p10 "…expand" → "…expand **numbers**". - Plain `model=nemotron`: 2/2 (972 / 981 ms). - Client that stops sending PCM: 3/3 by 1.03–1.09 s. Separately, Nemotron also gets some words wrong (e.g. p07 "smarter detection" vs "smart turn detection"). That is model accuracy and not part of this fix. distil-v3.5 still replaces the partial on stop.
Author
Contributor

CoS — client wiring dispatch (Opus / Claude Code)

D.H. approved: wire T3 mobile + OMB voice input to the locked hybrid STT on cfx-mgmt.

Target

  • WSS: (Tailscale-only)
  • Tester: https://cfx-mgmt.tail8f488.ts.net:10443/
  • Default locked: hybrid = Nemotron live partials → distil-v3.5 + spokenly on mic-off/stop
  • Pause flush live: (~1s silence → trailing word in partial; comment 21982)

UX constraints

  • Manual listen on/off toggle (Grok Bot style) — not auto turn/endpoint detection
  • Shared cfx-mgmt RTX 2060 service for phone + OMB (not per-device Grok API)
  • Prefer STT over S2S

Ask

Hermes → Claude Code Opus on orchestra: implement client wiring in (+ fork as needed). Post progress here / #31 if UI-side.

Infra waking Hermes via :8646; T3 container update/redeploy running in parallel (reported down).

## CoS — client wiring dispatch (Opus / Claude Code) D.H. approved: wire **T3 mobile + OMB** voice input to the locked hybrid STT on cfx-mgmt. ### Target - WSS: (Tailscale-only) - Tester: https://cfx-mgmt.tail8f488.ts.net:10443/ - Default locked: **hybrid** = Nemotron live partials → distil-v3.5 + spokenly on mic-off/stop - Pause flush live: (~1s silence → trailing word in partial; comment 21982) ### UX constraints - Manual listen on/off toggle (Grok Bot style) — **not** auto turn/endpoint detection - Shared cfx-mgmt RTX 2060 service for phone + OMB (not per-device Grok API) - Prefer STT over S2S ### Ask Hermes → Claude Code **Opus** on **orchestra**: implement client wiring in (+ fork as needed). Post progress here / #31 if UI-side. Infra waking Hermes via :8646; T3 container update/redeploy running in parallel (reported down).
Contributor

[Hermes / Claude Code Opus] Session is live on orchestra for #32 (T3 mobile + OMB voice → cfx-mgmt hybrid STT).

  • Claude Code session id: 5ca96f85-3856-4ce7-a558-8a2349b8d1ce (Opus, OAuth)
  • Worktree: /home/orchestra/repositories/openmausbot-stt32
  • Branch: omb32-stt-wiring (off origin/main)
  • Task: wire T3 mobile + OMB companion voice → wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly, manual listen toggle, STT_PAUSE_FLUSH_MS=1000, Tailscale-only.

Running now, will post results + branch when the wiring + build/test evidence land.

**[Hermes / Claude Code Opus]** Session is **live** on orchestra for #32 (T3 mobile + OMB voice → cfx-mgmt hybrid STT). - **Claude Code session id:** `5ca96f85-3856-4ce7-a558-8a2349b8d1ce` (Opus, OAuth) - **Worktree:** `/home/orchestra/repositories/openmausbot-stt32` - **Branch:** `omb32-stt-wiring` (off `origin/main`) - **Task:** wire T3 mobile + OMB companion voice → `wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly`, manual listen toggle, `STT_PAUSE_FLUSH_MS=1000`, Tailscale-only. Running now, will post results + branch when the wiring + build/test evidence land.
Contributor

[Hermes / Claude Code Opus] — session live, wiring in flight (handoff ho-452b22686c4f)

Claude Code Opus is running live on orchestra for the #32 wiring (T3 mobile + OMB voice → shared cfx-mgmt hybrid STT).

  • Worktree: /home/orchestra/repositories/openmausbot-stt32 (branch omb32-stt-wiring)
  • Companion worktree: t3code fork (omb32-t3-stt-orch) for the T3 mobile side
  • Endpoint: wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly (Tailscale-only, no auth header — tailnet is the gate)
  • Behavior: manual listen toggle (tap on/off, Grok-Bot style, no auto-turn), STT_PAUSE_FLUSH_MS = 1000 so the final partial is captured before commit.

What's landed locally

  • OMB companion — new src/lib/remote-stt.ts client + mic capture in Composer.tsx; mic button now uses the shared endpoint first, falls back to the macOS helper. 7 tests.
  • T3 mobile — remoteVoiceTranscription native module streams 16 kHz PCM and commits the final text; VoiceInputProvider honors the 1000 ms pause-flush before stop. 7 tests.
  • Both clients refuse any non-tailnet endpoint override (no public route).
  • Build/test: OMB tsc -b + vitest green (1969 tests). T3 tsc --noEmit + vp test green (85 tests).

I'll post the PR link + full diff summary here once the branch is pushed. No public route, no server/deploy/CF changes.

— Hermes (CoS), relaying Claude Code Opus. handoff_id=ho-452b22686c4f

## [Hermes / Claude Code Opus] — session live, wiring in flight (handoff ho-452b22686c4f) Claude Code **Opus** is running live on **orchestra** for the #32 wiring (T3 mobile + OMB voice → shared cfx-mgmt hybrid STT). - **Worktree:** `/home/orchestra/repositories/openmausbot-stt32` (branch `omb32-stt-wiring`) - **Companion worktree:** `t3code` fork (`omb32-t3-stt-orch`) for the T3 mobile side - **Endpoint:** `wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly` (Tailscale-only, no auth header — tailnet is the gate) - **Behavior:** manual listen toggle (tap on/off, Grok-Bot style, no auto-turn), `STT_PAUSE_FLUSH_MS = 1000` so the final partial is captured before commit. ### What's landed locally - **OMB companion** — new `src/lib/remote-stt.ts` client + mic capture in `Composer.tsx`; mic button now uses the shared endpoint first, falls back to the macOS helper. 7 tests. - **T3 mobile** — `remoteVoiceTranscription` native module streams 16 kHz PCM and commits the final text; `VoiceInputProvider` honors the 1000 ms pause-flush before stop. 7 tests. - Both clients refuse any non-tailnet endpoint override (no public route). - **Build/test:** OMB `tsc -b` + `vitest` green (1969 tests). T3 `tsc --noEmit` + `vp test` green (85 tests). I'll post the PR link + full diff summary here once the branch is pushed. No public route, no server/deploy/CF changes. _— Hermes (CoS), relaying Claude Code Opus. handoff_id=ho-452b22686c4f_
Contributor

#32 is shipped as two PRs:

  • OMB: #34, branch omb32-stt-wiring. Covers web/desktop Composer, companion browsers and the Android companion.
  • T3 mobile: donach/t3code#1, branch omb32-t3-stt. The fork is now seeded: main = pingdotgg/t3code@30654b3e91, plus omb31-external-chat = Personas 82387516. The #32 branch is stacked on #31.

One flush semantic in every client: manual toggle only, no endpointing. While on, mic PCM (16 kHz) streams and partials update live. On toggle-off the mic keeps streaming for STT_PAUSE_FLUSH_MS = 1000, then stop is sent and the server final is committed. If the socket drops or 15 s pass with no final, the last partial is kept. Endpoint: wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly. Clients refuse non-tailnet hosts. No server, deploy, Cloudflare or public-route changes.

Evidence

  • OMB: tsc -b clean; vitest run src 2147/2147 passed. The full-repo run, server suites included, exceeded the 10-minute agent limit and was not completed.
  • OMB Android: :app:testDebugUnitTest 962/962 and RemoteStt core 9/9 passed. The unfiltered :core:test has 1 failure, the ConnectionTest zoned-IPv6 test. This PR doesn't touch it, but I didn't confirm it also fails on main.
  • T3: client-runtime 34/34 and mobile 81/81 passed; tsc clean; fmt, lint and knip green.
  • Live against cfx-mgmt with a synthetic espeak clip, using OMB's remote-stt.ts: partials streamed, the 1000 ms flush caught the trailing words, and the final arrived 1.37 s after toggle-off. The T3 wire protocol was checked live on the earlier (since replaced) final-only branch, with the final in about 0.5 s. The merged T3 remoteStt.ts passed unit tests only; it wasn't run against the live endpoint.

Still untested: a real iOS or Android device, and the Electron/browser UI by hand. T3 known gaps: off the tailnet there is no on-device fallback, and the stream recorder skips microphone-priority selection.

Housekeeping: three duplicate claude -p runs of #32 were going at once (run_claude_32.sh). The final-only T3 branch omb32-t3-stt-orch is superseded and was not pushed. The ~/repositories/openmausbot-stt32 worktree's gitdir is root-owned, so I couldn't commit there; its uncommitted Android files are identical to commit 7172de85 on the pushed branch.

#32 is shipped as two PRs: - **OMB:** https://git.bitp.cz/donach/openmausbot/pulls/34, branch `omb32-stt-wiring`. Covers web/desktop Composer, companion browsers and the Android companion. - **T3 mobile:** https://git.bitp.cz/donach/t3code/pulls/1, branch `omb32-t3-stt`. The fork is now seeded: `main` = pingdotgg/t3code@30654b3e91, plus `omb31-external-chat` = Personas 82387516. The #32 branch is stacked on #31. **One flush semantic in every client:** manual toggle only, no endpointing. While on, mic PCM (16 kHz) streams and partials update live. On toggle-off the mic keeps streaming for `STT_PAUSE_FLUSH_MS = 1000`, then `stop` is sent and the server final is committed. If the socket drops or 15 s pass with no final, the last partial is kept. Endpoint: `wss://cfx-mgmt.tail8f488.ts.net:10443/ws?model=hybrid&post=spokenly`. Clients refuse non-tailnet hosts. No server, deploy, Cloudflare or public-route changes. **Evidence** - OMB: `tsc -b` clean; `vitest run src` 2147/2147 passed. The full-repo run, server suites included, exceeded the 10-minute agent limit and was not completed. - OMB Android: `:app:testDebugUnitTest` 962/962 and RemoteStt core 9/9 passed. The unfiltered `:core:test` has 1 failure, the `ConnectionTest` zoned-IPv6 test. This PR doesn't touch it, but I didn't confirm it also fails on main. - T3: client-runtime 34/34 and mobile 81/81 passed; `tsc` clean; fmt, lint and knip green. - Live against cfx-mgmt with a synthetic espeak clip, using OMB's `remote-stt.ts`: partials streamed, the 1000 ms flush caught the trailing words, and the final arrived 1.37 s after toggle-off. The T3 wire protocol was checked live on the earlier (since replaced) final-only branch, with the final in about 0.5 s. The merged T3 `remoteStt.ts` passed unit tests only; it wasn't run against the live endpoint. **Still untested:** a real iOS or Android device, and the Electron/browser UI by hand. T3 known gaps: off the tailnet there is no on-device fallback, and the stream recorder skips microphone-priority selection. **Housekeeping:** three duplicate `claude -p` runs of #32 were going at once (`run_claude_32.sh`). The final-only T3 branch `omb32-t3-stt-orch` is superseded and was not pushed. The `~/repositories/openmausbot-stt32` worktree's gitdir is root-owned, so I couldn't commit there; its uncommitted Android files are identical to commit 7172de85 on the pushed branch.
Contributor

Resumed (session 5ca96f85, orchestra). Worktrees: openmausbot-stt32-impl (#34 head 7172de85), t3code-stt32 (donach/t3code PR #1 @ 13e814312e), t3code-agents-tab (omb31-agents-tab). Now: #34/#33 CI triage, then #31 Agents-tab PR. No merges.

Resumed (session 5ca96f85, orchestra). Worktrees: openmausbot-stt32-impl (#34 head 7172de85), t3code-stt32 (donach/t3code PR #1 @ 13e814312e), t3code-agents-tab (omb31-agents-tab). Now: #34/#33 CI triage, then #31 Agents-tab PR. No merges.
Contributor

Offline A/B: Phonon refiner 1.7B vs spokenly (CPU spike)

Research only — live default unchanged (hybrid + post=spokenly on :10443). No Phonon app / Third Ear / Parakeet. No CUDA co-resident run.

Setup: same hybrid mic-off raws from hybrid-live-20261102-1524 (p01–p10). Spokenly = production regex+fleet-map+:8771. Phonon = bare raw → GGUF phonon-refiner-1.7b-Q4_K_S-e4 (MD5 ok) via new llama.cpp @19cce691 (LFM3; stock b11146 rejected lfm3) on 127.0.0.1:8772 CPU -ngl 0. Prompt = rewrite system + Writing mode: prompt…; greedy/temp 0. Service stopped after run.

Latency (median refine): spokenly GPU 126 ms vs Phonon CPU 2022 ms (~16×; not equal-device). Phonon VRAM ~0 (GPU stayed 5144/595 MiB free); RAM peak ~1.0 GiB.

Tech-term hits (suite): raw 30/42 · spokenly prod 36/42 · Phonon 30/42 · spokenly-on-bare-raw 30/42 — spokenly’s lead is the fleet replace map, not the LLM.

Quality notes: synthetic probes — both drop fillers 2/2 and resolve self-corrections 2/2; Phonon keeps literal “um/uh” when asked to strip those words (spokenly deletes content). On recordings: Phonon often list-formats (prompt mode) but dropped relational wording on p04; neither fixed p09 endpoint. No coding-term win without a vocab line.

Verdict: no reason to swap the live default off spokenly from this small spike. CUDA / vocab / live wiring deferred.

Artifacts on cfx-mgmt: /opt/stt-spike/evals/runs/phonon-ab-20261106-140437.{json,md}, phonon_ab.py, phonon_cpu_server.sh. License: LFM Open commercial <$10M (D.H. aware).

(infra-nix)

## Offline A/B: Phonon refiner 1.7B vs spokenly (CPU spike) Research only — **live default unchanged** (hybrid + `post=spokenly` on `:10443`). No Phonon app / Third Ear / Parakeet. No CUDA co-resident run. **Setup:** same hybrid mic-off raws from `hybrid-live-20261102-1524` (p01–p10). Spokenly = production regex+fleet-map+`:8771`. Phonon = bare raw → GGUF `phonon-refiner-1.7b-Q4_K_S-e4` (MD5 ok) via new llama.cpp `@19cce691` (LFM3; stock b11146 rejected `lfm3`) on `127.0.0.1:8772` CPU `-ngl 0`. Prompt = rewrite system + `Writing mode: prompt…`; greedy/`temp 0`. Service stopped after run. **Latency (median refine):** spokenly GPU **126 ms** vs Phonon CPU **2022 ms** (~16×; not equal-device). Phonon VRAM ~0 (GPU stayed 5144/595 MiB free); RAM peak ~1.0 GiB. **Tech-term hits (suite):** raw 30/42 · spokenly prod **36/42** · Phonon 30/42 · spokenly-on-bare-raw 30/42 — spokenly’s lead is the fleet replace map, not the LLM. **Quality notes:** synthetic probes — both drop fillers 2/2 and resolve self-corrections 2/2; Phonon keeps literal “um/uh” when asked to strip those words (spokenly deletes content). On recordings: Phonon often list-formats (prompt mode) but dropped relational wording on p04; neither fixed p09 endpoint. No coding-term win without a vocab line. **Verdict:** no reason to swap the live default off spokenly from this small spike. CUDA / vocab / live wiring deferred. Artifacts on cfx-mgmt: `/opt/stt-spike/evals/runs/phonon-ab-20261106-140437.{json,md}`, `phonon_ab.py`, `phonon_cpu_server.sh`. License: LFM Open commercial <$10M (D.H. aware). (infra-nix)
Sign in to join this conversation.
No project
No assignees
4 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
donach/openmausbot#32
No description provided.