Purpose speak-up is a plugin that provides reply read-aloud capability for Claude Code and OpenAI Codex (CLI and app). It lets users hear the content directly after the AI finishes a reply, and can be combined with Claude Code's built-in /voice dictation to enable "ask by mouth, listen by ear" typing-free conversation. The project was formerly named read-aloud, and old links redirect to the current repository.
Key capabilities
- Automatically reads each reply aloud, with speech running in the background without blocking subsequent operations; a new reply cuts off the previous reading.
- Automatically detects the reply language and selects a matching local voice. By default it automatically detects 48 languages, including Korean, Japanese, Chinese, Arabic, Hindi, Thai, Russian, Spanish, French, German, Vietnamese, and more; after a hint is provided via READ_ALOUD_LANG or the Claude Code language setting, it can cover 63 languages, with additions including Marathi, Nepali, Sanskrit, Assamese, Pashto, Yiddish, Cantonese, Bulgarian, Serbian, Macedonian, Kazakh, Kyrgyz, Mongolian, Malay, and Filipino. When the language switches mid-way, the voice switches accordingly.
- Before reading, it skips code blocks, URLs, tables, and Markdown symbols, reading only natural sentences as much as possible.
- Supports keypress stop: on Windows with edge voices, pressing any key during reading stops it; starting to type or sending a new message also interrupts reading.
- Uses voices already installed on the operating system by default, free, with no API key and no account required; with the default engines sapi, say, and espeak, it runs entirely locally.
- Optional edge voices: after installing edge-tts, it automatically uses more natural neural voices, such as Korean ko-KR-InJoonNeural, English en-US-AndrewMultilingualNeural, Japanese ja-JP-KeitaNeural, Chinese zh-CN-YunxiNeural, Spanish es-ES-AlvaroNeural, French fr-FR-RemyMultilingualNeural, and more. Voices can be changed via variables such as READ_ALOUD_VOICE_KO=ko-KR-SunHiNeural.
- Volume is controlled by READ_ALOUD_VOLUME, range 0-100, default 50. Installing miniaudio makes edge voices start about 2 seconds faster: pip install miniaudio.
- The mechanism is that Claude Code's Stop hook runs speak.py when a reply ends: it reads the final reply, converts Markdown into plain sentences, then launches the system speech engine as a separate process and returns immediately.
Usage
- Requirements: Python 3.9+.
- Claude Code: install the plugin within Claude Code and restart, and the next reply will be read aloud. The materials do not show the complete Claude Code installation command, so it is not provided here and must not be fabricated.
- Codex: first clone the repository git clone https://github.com/yoondahoon/speak-up,再运行 python speak-up/speak.py install-codex. After opening Codex, if it prompts "Hooks need review", confirm that the command runs speak-up/speak.py hook, then select Trust. After that, Codex replies will be read aloud. The removal command is python speak-up/speak.py uninstall-codex. The installer only adds its own entry to ~/.codex/hooks.json and preserves other hooks; do not move the cloned directory, because the hook points to that directory.
- Voice conversation: install the plugin and restart Claude Code; enable /voice tap; when the input box is empty, press the spacebar once, speak, then press the spacebar again to send. After Claude answers, speak-up reads it aloud. On Windows terminals, the tap mode is recommended; hold mode may show the microphone but not record; headphones are recommended to avoid the read-aloud sound being picked up by the microphone.
- /voice is a built-in Claude Code feature and is not part of this plugin; it uses the user's own Claude account; the dictation language follows the language setting in /config, for example korean.
- Toggle read-aloud: /speak-up:speak off, /speak-up:speak on.
- Upgrading from read-aloud: because the plugin was renamed, Claude Code will not switch automatically. You need to run an upgrade command once in the terminal, but the material does not show the content of that command, so it is not provided for now; after running it, restart Claude Code. The existing READ_ALOUD_* environment variables and ~/.claude/read-aloud/config.json continue to work. The command name changes from /read-aloud:speak to /speak-up:speak. Codex's existing hook continues to work because it points to the already-cloned folder; to get updates, run git pull in that folder. Do not rename or move the folder, otherwise you need to run install-codex again and Trust again.
- Configuration: settings are written to ~/.claude/read-aloud/config.json. The plugin also reads READ_ALOUD_* from the env block of ~/.claude/settings.json , as well as real environment variables, with real environment variables taking the highest priority.
- Optional edge voices: after pip install edge-tts, auto will automatically use edge. To stay offline even after installing edge-tts, set READ_ALOUD_ENGINE=sapi, or say, espeak. When edge fails, it falls back to the system voice.
- If you do not use the plugin system, you need to clone the repository and add configuration to ~/.claude/settings.json; the material does not give the specific configuration snippet, so it is not provided for now.
Use cases Suitable for users who, while programming, debugging, and asking questions with Claude Code or Codex, want to hear replies without looking at the screen; suitable for multilingual conversations, listening to results while doing other things, and on Windows with edge voices for quickly pressing a key to stop read-aloud. Combined with /voice, it can be used for voice communication without typing.
Limitations and notes
- The default engine is offline and free; the edge engine requires an internet connection, and the reply text will be sent to Microsoft's Read Aloud service, so edge should not be used when replies may contain confidential information. edge is invoked through the unofficial edge-tts package, and the service may change or stop at any time.
- The key-to-stop instructions apply to Windows with edge voices; in other environments, you can interrupt by sending a new message or starting to type.
- Each language must have an available voice; if a language has no voice, the system default voice will be used. The edge engine has voices for about 75 languages, and the system engine depends on the voices installed in the operating system.
- On Windows, if there is no Korean voice, you need to install the Korean language pack in "Settings → Time & Language → Language".
- The material does not provide the complete installation of Claude Code, the specific command for upgrading from read-aloud, or the configuration snippet for ~/.claude/settings.json when not using the plugin system; these contents are not provided for now.