CLI · open sourcelive
local-tts
Make your coding agent talk to you with simple, offline and optional online text-to-speech.
- 7stars
- 2forks
- v2.0.1latest release
- MITlicense
- Python 3.9+requires
- 2026-09-21last push
- v2.0.1
- Linux
- macOS
- Windows
A tiny command-line text-to-speech tool that makes your coding agent talk to you. It shells out to Kokoro-82M by default—eight languages from one small model—so speech is generated locally and offline.
It supports optional online speech and keeps language preferences in one config file rather than one chat, so every agent on the machine speaks the same way.
Highlights
- Offline by defaultKokoro-82M speaks eight languages from one small model. No API key, nothing leaves the machine.
- Zero runtime dependenciesThe package installs only itself. Standard library plus binaries you already have.
- Tone tagsInline <calm>, <urgent>, <whisper> and more change the delivery per sentence.
- Starts in a secondFragments play as soon as the first is synthesised instead of after the whole passage.
- Any voice via RVCBring a trained .pth and every agent on the machine speaks in that voice, per language.
- Six backendskokoro, piper, llamacpp, any OpenAI-compatible endpoint, RVC, or any command that writes a WAV.
- Built for coding agentsShips skills and hooks for Claude Code and friends, so the agent installs and drives it.
- Language memoryRemembers which backend and voice to use for each language.
Providers
-
The others are there because each one wins at something the default does not do.
- a voice you trained yourself
- a language kokoro reads badly
- a hosted endpoint or a binary you already have
-
rvc-python does audio-to-audio voice conversion only — it has no text input.
- Synthesize with another provider first, then convert that result to a target voice with a trained model.
-
Either provider talks to a small server that loads the model once and serves requests over localhost.
- Hold several voices at once.
- Phonetics and emphasis.
- Keep the GPU context warm, instead of rebuilding it per sentence.
Usage
-
Markdown is handled for you before synthesis, so none of it gets read aloud.
- Reading Markdown strips headings, emphasis, link URLs, bullet markers, tables and fenced code blocks.
-
Long documents are handled for you too.
- Backends that need short prompts get the text split at sentence boundaries, synthesized piece by piece, and joined into a single file.
- Backends that manage long input themselves receive it whole.
-
The local-tts-speak skill triggers on “talk to me”, “read this aloud”, “narrate this file”, “háblame”, and so on.
-
The local-tts-phonetics skill gets one word said properly: a name, a brand, an acronym, or a borrowed term inside another language.
- Looks the transcription up rather than deriving it from spelling.
- Keeps the winner in the dictionary.
Install
pipx install agents-local-tts
tts "Hello from my terminal."