DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to keep speech models loaded in a worker process with Speech CPP

Run a long-lived speech worker that a program talks to over JSON Lines.

Authorization notice. Speech CPP is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Remote script. The install step runs a script fetched from the internet, so review it before running.

Who it is forA developer whose program makes many speech requests and needs the models to stay loaded between them, such as an ASIST-style tool.

The problemLoading a model for every call wastes time, and linking a library may not fit the program's language.

The outcomeA worker process that answers one JSON Lines request per line on stdin with audio or text on stdout.

What you need first

  • 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

Steps

  1. Install speech using the installer for your platform.
  2. Start the worker with speech worker qwen3-asr-0.6b, using the model name your program needs. (inferred, check the README)
  3. Write one JSON request per line to the worker's stdin, following docs/worker.md in the repo.
  4. Read the audio or text and the terminal message from stdout, and check that each request ends with its terminal message.

Prompt for your agent

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.

Caveat. The exact request fields are in docs/worker.md, which this summary does not reproduce, so read that page before writing a client.

Share: X LinkedIn Hacker News Email Copy link

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 [email protected] and we will look at it promptly. Full disclaimer page