DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

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.

Short answer: Install speech using the installer for your platform; then start the worker with speech worker qwen3-asr-0.6b, using the model name your program needs; write one JSON request per line to the worker's stdin, following docs/worker.md in the repo. All steps.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for nyosegawa/speech.cpp and "Keep speech models loaded in a worker process"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer