{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nyosegawa-speech-cpp--run-speech-worker-for-a-program",
 "repo": "nyosegawa/speech.cpp",
 "repo_url": "https://github.com/nyosegawa/speech.cpp",
 "repo_slug": "nyosegawa-speech-cpp",
 "title": "Keep speech models loaded in a worker process",
 "page_title": "How to keep speech models loaded in a worker process with Speech CPP",
 "summary": "Run a long-lived speech worker that a program talks to over JSON Lines.",
 "who": "A developer whose program makes many speech requests and needs the models to stay loaded between them, such as an ASIST-style tool.",
 "problem": "Loading a model for every call wastes time, and linking a library may not fit the program's language.",
 "outcome": "A worker process that answers one JSON Lines request per line on stdin with audio or text on stdout.",
 "steps": [
  "Install speech using the installer for your platform.",
  "Start the worker with `speech worker qwen3-asr-0.6b`, using the model name your program needs. (inferred, check the README)",
  "Write one JSON request per line to the worker's stdin, following docs/worker.md in the repo.",
  "Read the audio or text and the terminal message from stdout, and check that each request ends with its terminal message."
 ],
 "agent_prompt": "Using the nyosegawa/speech.cpp repo, install speech, start `speech worker <model-name>`, and send one JSON Lines request built from docs/worker.md for the input <path-to-wav>. Expected output: one line of text or audio followed by a terminal message on stdout. Verify that the terminal message arrives for every request you send.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The exact request fields are in docs/worker.md, which this summary does not reproduce, so read that page before writing a client.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "c++",
 "requirements": [
  "macOS on Apple silicon, Linux on x86-64, or Windows x64",
  "Internet access to fetch the installer and models from Hugging Face the first time",
  "Free disk space for the model files, for example 1.21 GB for qwen3-tts-0.6b",
  "A terminal (PowerShell on Windows)",
  "A microphone, for live transcription"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The install step runs a script fetched from the internet, so review it before running."
  }
 ],
 "best": false,
 "score": 0.6,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nyosegawa-speech-cpp/run-speech-worker-for-a-program/",
 "md": "https://dedupedai.com/use-cases/nyosegawa-speech-cpp/run-speech-worker-for-a-program/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nyosegawa-speech-cpp--run-speech-worker-for-a-program.json",
 "api_version": "v1"
}
