Who it is forA privacy-minded developer who wants voice conversation without sending audio to a cloud provider.
The problemCloud voice services send audio off the machine, which some users cannot accept for their work.
The outcomeYou run the Hugging Face speech-to-speech service locally, point the runtime at its URL, and have a voice conversation that uses local components.
What you need first
- Node.js 22.22.2+ or 24.15.0+ and npm 10+
- A Bailian (DashScope) API Key or another supported voice frontend key, such as an OpenAI or Google API Key
- A backend Agent you want to use, such as Qwen Code, OpenCode, or Claude Code, installed through the one-click install option
- Microphone access on your computer
Steps
- Install the runtime with
npm install -g qwen-audio-agent. - Start the Hugging Face Speech-to-Speech service on your machine using its own instructions.
- Set the voice frontend in the config to Hugging Face Speech-to-Speech and enter the service URL.
- Start the Gateway with
qwenaudioand open the TUI withqwenaudio tui. - Speak a short question and confirm the reply comes from the local service.
Prompt for your agent
Use the repo QwenAudio/qwen-audio-agent to connect the Hugging Face speech-to-speech frontend running at <service URL>. Report the frontend name shown in the Gateway and whether a spoken question gets a reply. Verify the Gateway log shows the local service URL before reporting success.
Caveat. The README says the frontend is configurable for STT, LLM, and TTS only once the service is running, and the exact service setup is in the linked voice frontend guide, so the first run depends on that separate setup.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for QwenAudio/qwen-audio-agent and "Run a voice frontend stack with local speech models"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer