尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Hear Claude Code's replies on your Windows PC, even when Claude Code runs on another machine.
翻译准备中
正在加载完整 README。
查看完整 README ↗voiceloop reads Claude Code's replies aloud on your Windows PC, even when Claude Code runs on a different machine.
A small hook in Claude Code sends each finished reply to voiceloop.exe on your desk PC. voiceloop turns the text into speech with Kokoro, plays it, and shows a small pill on screen while it talks. Questions and permission prompts get their own chimes, so you can look away while an agent works and still know when it needs you.
AskUserQuestion), and a ding-dong-ding for permission prompts./resend as "slash resend" and ~/code/project as "project"./mute, or have every unmuted thread speak in turn./resend (or /repeat).The diagram at the top shows the whole loop:
voiceloop_hook.py through its hooks (Stop, PreToolUse for AskUserQuestion, and Notification).voiceloop.exe on your PC: a POST /speak on port 8765 with your token.voiceloop.exe sends the text to Kokoro (POST /v1/audio/speech) one sentence chunk at a time and gets WAV audio back.The server never plays anything: Claude Code only sends text, and the speech is made and played at your desk.
All three can be the same Windows PC. voiceloop was built for the split case: Claude Code on a headless server, you at a desk, and speech made on whatever box has spare CPU.
| Part | Runs on | Needs |
|---|---|---|
voiceloop.exe | Windows 10 or 11, 64-bit (tested on 11) | Nothing else. It's a single 9 MB exe |
hooks/voiceloop_hook.py | Anywhere Claude Code runs | Python 3.8 or later, standard library only |
| Kokoro, or another speech server | Any machine with Docker | About 2 GB of memory for Kokoro. A CPU is enough |
Follow docs/kokoro.md. In short, run docker compose up -d in the kokoro/ folder and check that http://that-box:8880/health answers.
Already run another speech server with an OpenAI-style /v1/audio/speech endpoint, such as Speaches? That works too. See Other speech servers.
Download voiceloop-<version>-windows.zip from Releases and unzip it.
Right-click install.ps1, choose Run with PowerShell, and allow it. To let only your Claude Code machine through the firewall, run it from an administrator PowerShell instead: powershell -ExecutionPolicy Bypass -File install.ps1 -HookFrom 192.168.1.20.
Settings opens. Under Voice, enter Kokoro's address (http://127.0.0.1:8880 if it runs on this PC), press Test connection, and pick a voice.
The exe isn't code-signed, so Windows SmartScreen may say it "protected your PC". Choose More info, then Run anyway. Each release lists the exe's SHA256 so you can check the download first.
voiceloop lives in %LOCALAPPDATA%\VoiceLoop, starts when you log on, and has a Start menu entry. To remove it, run install.ps1 -Uninstall.
On the machine that runs Claude Code:
Clone this repo, or copy hooks/voiceloop_hook.py somewhere it can stay.
In voiceloop, open Settings, About, pick the address your Claude Code machine can reach, and press Copy command.
Paste and run that command next to voiceloop_hook.py. It looks like this:
python3 voiceloop_hook.py setup --url http://192.168.1.50:8765 --token 3f9c...
It saves the address and token to ~/.config/voiceloop/hook.json (%APPDATA%\VoiceLoop on Windows), adds four hooks to ~/.claude/settings.json after a dated backup, and sends a test phrase. You should hear it.
Start a new Claude Code session. Replies are now read out.
python3 voiceloop_hook.py test sends the test phrase again. python3 voiceloop_hook.py remove takes the hooks back out of settings.json.
/mute and /unmute mute or unmute the current thread./resend, /repeat and /replay read the last reply again.以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗