Skip to main content

Listen to AI coding assistant responses via Kokoro TTS.

Project description

lystn CLI

Cross-platform command-line client for the Lystn TTS server. Replaces the Windows-only PowerShell hook with a Python package that works on Windows, Mac, and Linux.

Install

pipx install -e .          # from this folder, while developing
# or once published:
pipx install lystn

pipx puts lystn on your PATH in an isolated environment — no conflicts with your other Python packages.

Configure

lystn config set server http://127.0.0.1:7878     # local server (default)
lystn config set voice af_heart                    # any voice from `lystn voices`
lystn config set api_key sk_...                    # only needed for cloud server later
lystn config show

Config lives at:

  • Windows: %APPDATA%\lystn\config.json
  • Mac/Linux: ~/.config/lystn/config.json

Use

lystn test                          # speak "Lystn is connected and working."
lystn speak "Hello there."          # speak the argument
echo "Hello there." | lystn speak   # speak stdin
lystn voices                        # list voices
lystn doctor                        # check server reachable

Wire into assistants

lystn install

Wires Lystn into Claude Code and, when local Codex is present, into the shared Codex config used by the Codex app, Codex CLI, and Codex IDE extension. Restart the assistant, or start a new session/thread, after installing. Every completed response will be spoken aloud.

To target only Codex local surfaces:

lystn install --codex

The hook is fire-and-forget: if the Lystn server is down or the text is empty, the hook exits silently and doesn't break Claude's UI.

Commands

Command What it does
lystn speak [TEXT] Speak text from argument or stdin
lystn hook Claude Code Stop-hook entry — reads JSON from stdin
lystn test Speak a short connection-test message
lystn voices List voices the server offers
lystn doctor Print config + server health
lystn config show Show current config
lystn config set KEY VALUE Update config (server, voice, api_key)
lystn install Wire Claude Code and detected Codex local surfaces

Requirements

  • Python 3.10+
  • A running Lystn server (local Kokoro for now; cloud server later)
  • Audio output device (sounddevice handles it cross-platform)

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

lystn-0.1.6.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

lystn-0.1.6-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file lystn-0.1.6.tar.gz.

File metadata

  • Download URL: lystn-0.1.6.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for lystn-0.1.6.tar.gz
Algorithm Hash digest
SHA256 165b97119e13c7b6ce7a62f283b7f175daf1d99b47d2d9a009e688cb3b19953c
MD5 318d531280167f0417cb4f84756f92d9
BLAKE2b-256 8e886321c14267395237e817d21cbb013f894fab28ed4d6a3a30a4758edc3ad0

See more details on using hashes here.

File details

Details for the file lystn-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: lystn-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for lystn-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8b66f771cc8b77acdc8425fd223cf32b395cabcbb8957d15234af384d2c44e7c
MD5 fb35445953500c1eaa6c9d618f5beb04
BLAKE2b-256 43da6dec2a92a5ffee9f4bbd5c0623369df1f646d7bdbc9f554309b813ca3a21

See more details on using hashes here.

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