Commit Graph
2 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 63bfa392c4 speech lane: Qwen3-ASR and Kokoro on the CPU, behind OpenAI's audio routes
./install-speech.sh, opt-in: llama.cpp's llama-server built for the CPU at a pinned
commit runs Qwen3-ASR (0.6B by default, 1.7B with SPEECH_ASR=1.7b), and speech-server.py
serves /v1/audio/transcriptions and /v1/audio/speech in front of it, with Kokoro-82M in
onnxruntime. One unit, qwen38-speech.service, on loopback, the GPU hidden, the small cores
only (0-4 for the recognizer, 10-14 for the voice), so that it runs beside any lane. Not
started at boot unless SPEECH_BOOT=1. Every model is pinned by sha256, every package of
the venv by exact version, wheels only.

What the reference box showed, and the routes do about it (2026-10-05):
- a recording sent whole came back cut with a 200 past the context (582 s: 353 words
  of 1482), and passes of 120 s skipped 61 words; uploads are read by ffmpeg (m4a, webm,
  ogg as well), cut into pieces of 30 s at quiet moments and heard one by one: 9.7% WER
  on 291 s of French at 0.51 of real time, the same as the clips heard one by one;
- llama-server's prompt cache in host memory (8 GiB by default) took the lane from 1.6 to
  4 GiB: --cache-ram 0, and 2.7 GB resident at work;
- Mandarin and Japanese are refused rather than spoken wrong: espeak's phonemes are not
  the ones those voices were trained on (21% and 15% of characters heard back wrong);
- the phonemizer's copies of espeak go with a private /tmp, emptied at every stop.

uninstall.sh lists and removes the unit and the runtime, and keeps the models with a
reclaim command, as for every checkpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 22:59:12 +02:00
Hasan BasbunarandClaude Opus 5.5 3de366076a switch, image lane and uninstall: correct on boxes that are not the reference one
- L3: a native switch restores a target's config that still carries YaRN
  (served while the box was 1m); the restore refuses before the unit when the
  backup is gone
- L8: a switch checks for room before it downloads and names a full disk; the
  cockpit's switch job gets 2 h (a flash download alone nearly took the 30 min)
- L9: patch-template.py keeps the installed template's default when
  LEAN_DEFAULT is unset, and its refusal names the real default
- L10: run.sh's restore hint is a command install.sh accepts
- L6/L7/L12: install-image.sh reads its cache from the unit (then the text
  lane's mount), measures room where the checkpoint and the runtime land and
  counts the cache by bytes, and --uninstall of the boot lane re-enables the
  text lane it replaced
- L11/N2: uninstall.sh inventories every cache and PLE folder the lanes use;
  it asks sudo only for root's files, and when refused leaves the running
  services whole (a no-sudo box died at its first sudo call, found in a
  sandbox run); it no longer exits 1 after a clean run on a box without a
  PLE folder
- tests follow the renamed lines (image lane room check, inventory paths,
  lane removal and image reclaim extractions)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 17:32:16 +02:00