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

How to run a local OpenAI-style audio API for an app with Speech CPP

Point an OpenAI audio client at a local speech server for speech and transcription.

Short answer: Install speech using the installer for your platform; then run speech serve qwen3-tts-0.6b qwen3-asr-0.6b to start the server; send a speech request with curl http://127.0.0.1:8080/v1/audio/speech -H 'Content-Type: application/json' -d '{"input": "Hello.", "voice": "ryan"}' -o hello.wav. 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 building a web app or script that already calls OpenAI's audio API and wants to keep audio processing on their own computer.

The problemAudio requests to a hosted API send private audio off the machine and add per-call costs during development.

The outcomeSpeech and transcription requests answered by a local server through the same API shape, using a changed base URL.

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. Run speech serve qwen3-tts-0.6b qwen3-asr-0.6b to start the server.
  3. Send a speech request with curl http://127.0.0.1:8080/v1/audio/speech -H 'Content-Type: application/json' -d '{"input": "Hello.", "voice": "ryan"}' -o hello.wav. (inferred, check the README)
  4. Send a transcription with curl http://127.0.0.1:8080/v1/audio/transcriptions -F file=@hello.wav.

Prompt for your agent

In the nyosegawa/speech.cpp repo, install speech, run `speech serve qwen3-tts-0.6b qwen3-asr-0.6b`, and then call the local POST /v1/audio/transcriptions endpoint on 127.0.0.1:8080 with a WAVE file at <path>. Expected output: a JSON or text transcript of the file. Verify that the text matches the audio.

Caveat. The server listens on 127.0.0.1 and has no authentication, so do not expose it on a shared or public network.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for nyosegawa/speech.cpp and "Run a local OpenAI-style audio API for an app"

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