Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-stt/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
maia bceaf31f36 swarm-stt: move the settings and request handling out of main and test it
main read the environment through closures built inline and held the
per-request admission and answer inside the receive loop, so none of it
could run in a test. Each is now a function:

- env_var and env_number read through a lookup closure in place of
  std::env, and main wraps std::env::var.
- request_agent, admit and respond hold the admission and the answer of
  one request; answer takes any Engine instead of Whisper.
- stored_value holds the check on the stored client secret.

Tests run settings, admission and answers against a fake engine.

Closes #6811
2026-11-23 21:03:05 +01:00
..
cache.rs swarm-stt: the speech-to-text core (hash cache, shared runs, ffmpeg and whisper-cli engine) 2026-11-11 23:10:17 +01:00
engine.rs swarm-stt: reply deadline agrees with the limits, one request per agent, short errors to the sender 2026-11-12 09:07:04 +01:00
lib.rs swarm-stt: only files that start like an audio container reach ffmpeg 2026-11-11 23:10:17 +01:00
main.rs swarm-stt: move the settings and request handling out of main and test it 2026-11-23 21:03:05 +01:00
metrics.rs swarm-stt: metrics and a Grafana board for the speech-to-text service 2026-11-12 12:18:32 +01:00
service.rs swarm-stt: the speech-to-text core (hash cache, shared runs, ffmpeg and whisper-cli engine) 2026-11-11 23:10:17 +01:00
sniff.rs swarm-stt: only files that start like an audio container reach ffmpeg 2026-11-11 23:10:17 +01:00