speak-when-done
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@speak-when-done say "tests pass, ready for review" out loud when you're done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Speak When Done
Voice notifications for AI coding agents. A tiny text to speech MCP server and Claude Code plugin that says out loud when your agent is done or needs you, so you can look away from the terminal.
Works on its own with your computer's voice: macOS
say, Windows speech (SAPI), Linuxspd-sayorespeak-ng. Any language your system has a voice for.Says what happened, not just "done": the first sentence of the agent's last message, with Markdown stripped.
No accounts, no API keys, no telemetry. Nothing leaves your computer unless you connect DuoWave.
With DuoWave, the free open-source voice assistant, you hear it in the room: on a smart speaker or in DuoWave's own voice.
Zero dependencies. Node.js 18.17 or newer.
Install
Claude Code: the plugin (recommended)
The plugin speaks on its own after every turn (Stop hook) and when Claude waits for your approval or input
(Notification hook). It also adds the speak tool.
/plugin marketplace add duowaveai/speak-when-done
/plugin install duowave-speak@duowaveFrom a terminal: claude plugin marketplace add duowaveai/speak-when-done, then
claude plugin install duowave-speak@duowave.
Claude Code asks for the plugin's options when you enable it: language, voice and, if you use it, DuoWave's address and key. All of them can stay empty.
Claude Code: only the MCP server
claude mcp add speak -- npx -y speak-when-doneThen ask Claude to "say it out loud when you're done". The server tells the model to call notify_done at the end
of a task. A model can forget; the plugin's hooks never do.
Codex
Speak after every turn with Codex's notify setting, in ~/.codex/config.toml:
notify = ["npx", "-y", "speak-when-done", "hook"]And, if you also want the tools:
codex mcp add speak -- npx -y speak-when-doneCursor, Windsurf, Claude Desktop and any MCP client
Add the server to the client's MCP config (~/.cursor/mcp.json for Cursor):
{
"mcpServers": {
"speak": {
"command": "npx",
"args": ["-y", "speak-when-done"],
"env": { "SPEAK_LANGUAGE": "en-US" }
}
}
}From the command line
npx -y speak-when-done say "The build is green"
echo "Tests pass" | npx -y speak-when-done say --language en-GBRelated MCP server: Voice MCP Server
Tools
Tool | What it does | Arguments |
| Says that the task is finished or that the agent needs you. The model is asked to call it once, at the end. |
|
| Says any short text out loud. |
|
Long text is cut to whole sentences (300 characters by default). Phrases never talk over each other: the next one waits for the previous one to finish.
Settings
All settings are environment variables, all optional.
Variable | What it does |
| Language as a BCP 47 tag: |
| A system voice by name: |
| Words per minute, about 175 is normal. |
| The longest phrase, 300 by default. |
|
|
|
|
| Speak through DuoWave instead of the system voice. See below. |
|
|
| A speaker's session id; |
On Linux, install speech-dispatcher (spd-say) or espeak-ng if neither is there.
With DuoWave: hear it in the room
A notification on your screen is easy to miss when you're in the kitchen. DuoWave is a free, open-source voice assistant that runs on your computer and connects to smart speakers at home. Give this server DuoWave's address and an access key, and "Tests pass, ready for review" is said on the speaker in the room, or in DuoWave's own voice on your computer.
Install DuoWave from duowave.ai.
In DuoWave, open Settings → People and access → Access keys and create a key for this server. Give it the right Speak through the speaker; for DuoWave's voice on the computer, also Conversation, time, date.
Set
DUOWAVE_URL(for examplehttp://localhost:7780) andDUOWAVE_KEY. In the Claude Code plugin, these are the plugin's options; the key is kept in Claude Code's secure storage.
If DuoWave can't be reached, the phrase is said with the system voice, and the tool's answer says why.
With DuoWave you can also go further: say a task out loud, DuoWave starts a Claude Code session, and tells you when it's done.
Privacy
Without DUOWAVE_URL and DUOWAVE_KEY, this server makes no network requests at all: it runs the speech program
your system already has. With them, it sends the phrase only to the DuoWave address you set. There is no telemetry.
Troubleshooting
Nothing is said. Run
npx -y speak-when-done say "test"in a terminal. If that is silent, check your system volume and, on Linux, thatspd-sayorespeak-ngis installed.The plugin hooks don't fire. Type
/hooksin Claude Code and checkStopandNotification.Wrong language. Set
SPEAK_LANGUAGE, or a voice by name withSPEAK_VOICE. On macOS, more voices are in System Settings → Accessibility → Spoken Content → System Voice → Manage Voices.Too chatty. Set
SPEAK_QUIET=1for a while, or disable the plugin with/plugin.
Development
npm test
node bin/speak-when-done.js --helpLicense
Apache-2.0. Made by the DuoWave authors.
Available Tools
2 toolsnotify_doneSay the task is doneA
Tell the user out loud that you finished the task or need their input, so they can look away from the screen. Call it once, at the very end of a task, with one short sentence in the user’s language.
Inputs: summary (required), rate, voice, language.
speakSpeak out loudA
Say a short text out loud on this computer (or on a DuoWave speaker in the room, if configured). Use when the user asks you to say something aloud. Keep it to one or two sentences; Markdown is stripped.
Inputs: text (required), rate, voice, language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Both tools produce spoken output, so there is some surface overlap. However, the descriptions clearly separate user-requested speech (speak) from end-of-task announcements (notify_done), making misselection unlikely.
Both names are verb-led and readable, with speak being a bare verb and notify_done following a verb_object pattern. The minor structural difference does not impede understanding.
Two tools fit this narrowly scoped speech-notification server well. One handles arbitrary spoken text and the other handles completion announcements, so each earns its place, though the surface is minimal.
For the stated purpose of speaking aloud and notifying when done, the core operations are covered. Minor gaps like stopping speech or configuring output devices are not necessary for the main workflow.
Maintenance
Related MCP Connectors
Let cloud agents talk to you: progress updates spoken on your Mac, and replies you send back.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Text to speech for your AI. Your AI can send text to Doc Player to read it aloud. You will see a reader window with the text and you can control the playback sentence by sentence. Find an example here: https://documentplayer.com/connect-ai/
Turn articles and text into narrated audio, playlists and podcast feeds from your AI agent.
1
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables coding agents to speak aloud using text-to-speech functionality. Works with agents running inside devcontainers and provides configurable voice settings for creating chatty AI companions.6-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to speak aloud by generating and playing audio through the system output. Supports multiple TTS providers, playback queue management, and configurable voice profiles.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to verbally announce task progress and events through local text-to-speech, with cloud synthesis via Volcano Engine or Edge TTS, scene-based voice settings, and a Windows SAPI fallback so announcements continue even when the cloud fails.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to narrate internal thoughts, announce tool actions, and speak final responses aloud through local cross-platform text-to-speech. It exposes dedicated audio tools over stdio JSON-RPC for MCP-compatible clients.MIT