outloud 0.1.1

Claude Code Stop hook that reads each reply out loud with your OS built-in voice
outloud-0.1.1 is not a library.

outloud

Claude Code, out loud. A tiny Rust Stop hook that reads each reply aloud with your operating system's built-in voice. No cloud, no API keys.

OS Voice used
macOS say
Windows PowerShell System.Speech
Linux espeak-ng if installed, otherwise spd-say

Code blocks are spoken as "code block", markdown symbols are stripped, and replies are capped at 4000 characters. The text is passed to the voice on stdin, never through a shell.

Install

  1. Install the binary (needs Rust):

    cargo install outloud
    

    Or download a prebuilt binary from the Releases page and put it on your PATH.

  2. Add the plugin in Claude Code:

    /plugin marketplace add logesh-kumar/outloud
    /plugin install outloud@outloud
    

On Linux, install a voice if you have none: sudo apt install espeak-ng.

Without the plugin

Add this to ~/.claude/settings.json, using the binary's absolute path:

{
  "hooks": {
    "Stop": [
      { "hooks": [{ "type": "command", "command": "/absolute/path/to/outloud" }] }
    ]
  }
}

Try it

echo '{"transcript_path":"/path/to/transcript.jsonl"}' | outloud --dry-run

--dry-run prints the speech command and the cleaned text instead of speaking.

Turn it on and off

With the plugin installed, use the slash commands:

/outloud:off
/outloud:on

From a terminal, the binary does the same thing:

outloud off      # mute
outloud on       # unmute
outloud toggle   # flip
outloud status   # show the current state

The switch is a file, ~/.outloud-off. It takes effect on the next reply, in every session, with no restart.

  • To stop a reply mid-sentence on macOS: killall say.
  • To remove it for good: /plugin uninstall outloud@outloud, or delete the Stop entry from your settings.
  • Run /hooks in Claude Code to see whether the hook is registered.

Develop

cargo test
cargo clippy --all-targets
cargo install --path .

Release

Bump version in Cargo.toml and .claude-plugin/plugin.json, then:

git tag vX.Y.Z && git push origin vX.Y.Z

The release workflow tests, builds macOS, Linux and Windows binaries, and attaches them to a GitHub release.

License

MIT