Keep local voice memory out of the daemon (#1217)

* Move local speech work out of daemon

Run local speech models in a lazily spawned worker so native model memory and blocking synthesis/transcription work stay out of the daemon process. The worker exits after idle time so local speech RSS can be reclaimed.

* Update supervisor stop test for process title
This commit is contained in:
Mohamed Boudra
2026-05-29 13:27:28 +08:00
committed by GitHub
parent cdcf3d8d55
commit 04fb0f9b82
8 changed files with 1279 additions and 199 deletions
@@ -13,6 +13,8 @@ import { runSupervisor } from "./supervisor.js";
import { resolveSupervisorLogFile } from "./supervisor-log-config.js";
import { applySherpaLoaderEnv } from "../src/server/speech/providers/local/sherpa/sherpa-runtime-env.js";
process.title = "Paseo Supervisor";
interface DaemonRunnerConfig {
devMode: boolean;
workerArgs: string[];