Read text aloud with high-quality neural TTS — from clipboard, stdin, or argument.
Warning
Lector is in early development. Expect rough edges, breaking changes, and missing features.
Lector wraps kokoro-onnx in a simple CLI with an interactive player. Audio is streamed chunk-by-chunk so reading starts immediately, even for long texts.
You need uv, a Python package manager. It handles everything else (including Python itself) automatically.
Install uv — open Terminal (⌘ Space → type "Terminal" → Enter) and run:
curl -LsSf https://astral.sh/uv/install.sh | shOr via Homebrew:
brew install uvClose and reopen Terminal so the uv command is available.
uv tool install git+https://github.com/clstaudt/lectorOr, if you have the source code locally:
uv tool install /path/to/lectorThis installs lector as a system-wide command. The first time you
use it, model files (~300 MB) are downloaded automatically to
~/.lector/models/.
# Read text directly
lector read "The quick brown fox jumps over the lazy dog."
# Read from the clipboard
lector read --clipboard
# Pipe text in
pbpaste | lector read
cat article.txt | lector readWhile audio is playing, use these keys:
| Key | Action |
|---|---|
Space |
Pause / resume |
q |
Quit |
r |
Restart |
← h |
Previous chunk |
→ l |
Next chunk |
+ |
Speed up |
- |
Slow down |
lector voicesPopular English voices: af_heart, af_nicole, af_sarah, af_sky,
am_michael. Pick one with --voice:
lector read --voice af_nicole --speed 0.9 "Hello!"See the full list at Kokoro-82M/VOICES.md.
Add a Quick Action so Read with Lector appears in the right-click Services menu — just like the built-in "Start Speaking":
lector install-serviceThen:
- Select text in any app.
- Right-click → Services → Read with Lector.
- (First time you may need to enable it in System Settings → Keyboard → Keyboard Shortcuts → Services.)
| Command | Description |
|---|---|
lector read |
Read text aloud (arg / clipboard / stdin) |
lector voices |
List available voice names |
lector download |
Pre-download model files (~300 MB) |
lector install-service |
Install macOS Quick Action |
uv tool upgrade lectoruv tool uninstall lector
rm -rf ~/.lector # remove downloaded modelsgit clone <repo-url> && cd lector
uv sync
uv run lector read "Hello!"
uv run pytestGPL-3.0-or-later
