Skip to content

feat(infer): keep the speech service operator checks in scripts/speech (#1006) - #1028

Merged
YiannisDermitzakis merged 1 commit into
mainfrom
chore/speech-test-helpers
Nov 22, 2026
Merged

YiannisDermitzakis merged 1 commit into
mainfrom
chore/speech-test-helpers

Conversation

@YiannisDermitzakis

Copy link
Copy Markdown
Contributor

Summary

Keeps the speech service's operator checks in the repo, in scripts/speech/ with a README. They were written to walk #1006's DevOps-gate Test Plan, and they lived in the gate workspace's gitignored scripts/tmp/, which fr reaped once the housekeeping PR merged.

Script Test Plan step What it checks
speech-stt-check.sh 2 STT language auto-detect per language (records from the mic)
speech-tts-check.sh 3 TTS per language, by listening (Kokoro en, Piper de/el; --kokoro-only for the old comparison)
speech-batch-alerts-check.sh 5 In-cluster batch transcription of a long recording (or --record N), an optional ComfyUI cycle, then Grafana alert history (with a preflight that the merged rules are live)
speech-exposure-check.sh 6 LAN route serves speaches, public DNS NXDOMAIN (DoH fallback), the Hop edge does not serve it
speech-benchmark.sh 7 Wraps scripts/speech-benchmark/run.py with the VRAM baseline and sampling

Each script prints a one-line, colon-free answer for fr ops gate. The README also records what these checks learned along the way: long recordings must use the in-cluster service, Grafana reads rules only at boot, Pending is not firing, cold versus warm latency, and the LAN wildcard.

Changes from the scratch versions:

Guard: scripts/tests/test_speech_operator_scripts.py checks that every script parses, is executable, is listed in the README, and carries no machine path.

Tests: 73 targeted tests pass locally. speech-exposure-check.sh was re-run live from an fr worktree and passed.

Refs #1006 #1024

🤖 Generated with Claude Code

#1006)

The five helpers written to walk the speech service's DevOps-gate Test Plan
(STT auto-detect, TTS listening, batch + quiet alerts across a GPU
hand-over, private exposure, benchmark) lived in a reaped workspace's
gitignored scripts/tmp. They are reusable for any later change to speech,
gpu-switcher or the GPU sharing, so they move here with a README.

They locate the repo from their own path and fall back to the main
checkout for the gitignored .env_hop and kubeconfig; no personal paths.
The TTS check now defaults to the preloaded Piper voices for de/el.
test_speech_operator_scripts.py keeps them parseable, executable,
documented and free of machine paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@YiannisDermitzakis
YiannisDermitzakis marked this pull request as ready for review November 22, 2026 17:50
@YiannisDermitzakis
YiannisDermitzakis merged commit 3d89ce9 into main Nov 22, 2026
1 check passed
@YiannisDermitzakis
YiannisDermitzakis deleted the chore/speech-test-helpers branch November 22, 2026 17:50
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