Skip to main content

Speak text aloud from the terminal. Built for LLM agents to talk to you, with offline system TTS when no API key is configured.

Project description

saynow

PyPI npm dependencies MIT

Speak text aloud from the terminal. Built so LLM agents can talk to you.

saynow "the build finished, 42 tests passed"

Works with no configuration — it falls back to your OS's built-in voice, which is offline, free, and needs no API key. Add a key for better audio.

Install

pip install saynow          # or: uv tool install saynow

No third-party dependencies — standard library only. An identical npm package exists for Node; both read the same config file, so pick whichever runtime you already have.

Usage

saynow "text to speak"              # speak an argument
echo "text" | saynow                # speak stdin
pytest 2>&1 | tail -1 | saynow      # speak a command's last line
saynow -p openai -v nova "hello"    # pick a provider and voice
saynow --save note.mp3 "hello"      # write a file instead of playing
Provider Quality Needs
system Fair Nothing — built into the OS
openai Good OPENAI_API_KEY
elevenlabs Best ELEVENLABS_API_KEY
openrouter Good OPENROUTER_API_KEY

If a cloud provider is configured but its key is missing, saynow warns on stderr and speaks with the system voice anyway. Use --strict to opt out. Concurrent calls are serialized so speech never overlaps.

Configure

saynow init                          # interactive setup
saynow config set provider openai
saynow voices                        # available voices
saynow models                        # OpenRouter models that can speak

Config lives at ~/.config/saynow/config.json, mode 0600. Precedence is defaults → config file → environment → flags. API keys are never accepted as flags, since argv is visible to ps and lands in shell history.

Use it from an agent

Add this to your CLAUDE.md, AGENTS.md, or equivalent:

You can speak to the user out loud with `saynow "<text>"`. Use it for things
worth interrupting for: a long task finishing, a question that blocks
progress, or an error that needs attention. Keep it to one short sentence —
it is spoken aloud, not read. Do not narrate routine progress.

The bubble

The npm build also shows a floating bubble with the transcript and an optional reply box (--ask). That is not yet ported here, so the pip build speaks and, with --ask, exits 2. See the project README.

Full reference

saynow --help    # complete reference: every flag, setting, and exit code

License

MIT — source at https://github.com/dhruvyad/saynow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saynow-0.7.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saynow-0.7.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file saynow-0.7.0.tar.gz.

File metadata

  • Download URL: saynow-0.7.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for saynow-0.7.0.tar.gz
Algorithm Hash digest
SHA256 e751f5a200e5b0514ef618a5dd151a7bc1765a89e9d9cf3c1ee306d2f2dc5523
MD5 e5e79ac7501dc3f1341c9c3f2223c1b2
BLAKE2b-256 2c61bbb478411b45997be4e4b732d08e9c147aa4d3e5d952c6987e8ca129a50b

See more details on using hashes here.

Provenance

The following attestation bundles were made for saynow-0.7.0.tar.gz:

Publisher: release.yml on dhruvyad/saynow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file saynow-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: saynow-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for saynow-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37622770b647de4ec84973f88d4d28558c760637a496f72267f409f21bbcd5d3
MD5 14a51c8ea3a89d9315bf4d410d834636
BLAKE2b-256 dac7462e213372e3bf8b44e78c562ca130fa0ac6e92b4afdf311844abc42a51d

See more details on using hashes here.

Provenance

The following attestation bundles were made for saynow-0.7.0-py3-none-any.whl:

Publisher: release.yml on dhruvyad/saynow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page