/loudkit:add-offline-ttsfrom loudkit
Integrates offline, on-device text-to-speech using loudkit across Python, JS/TS (Node), Rust, Go, and Swift (macOS/iOS). No cloud API needed.
Ships in loudkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
loudkit runs the same engine in five languages. Audio is made on the device
that runs the code. There is no API key, no account and no per-request cost.
The code is Apache-2.0; the voice licences are in the choose-voice skill.
Find the target. Read the project to find its language and platform:
| Project file | Port | Reference |
|---|---|---|
pyproject.toml, requirements.txt | Python | references/python.md |
package.json (Node 20+) | JavaScript / TypeScript | references/js.md |
Cargo.toml | Rust | references/rust.md |
go.mod | Go | references/go.md |
Package.swift, .xcodeproj (macOS 14+, iOS 17+) | Swift | references/swift.md |
Read only the reference for that port. If you cannot tell, ask.
Say what does not fit. There is no port for Android or for the browser
(WebAssembly). The JavaScript port is for Node, not the browser.
Say so instead of forcing a port onto a platform it does not support.
For a desktop program in another language (C#, Java), loudkit serve runs
a local HTTP server on the same machine that the program can call; see https://github.com/loudreader/loudkit/blob/main/docs/guides/04-server-and-agents.md
Pick a model. Start with loudreader/loudr-1 (reference quality).
Offer loudreader/loudr-1-turbo when latency matters more. Switching is a
change of name; the code and voices stay the same. Tell the user to compare
both on their own text.
State the download. The first load fetches the model once, then runs offline:
| Runtime | loudr-1 | loudr-1-turbo |
|---|---|---|
| Python, PyTorch | 0.75 GB | 0.72 GB |
| ONNX (JS, Rust, Go, Python without torch) | 2.60 GB | 2.44 GB |
| CoreML (Swift) | 2.46 GB | 2.44 GB |
For a mobile or desktop app, download at first launch or on demand, not inside the app bundle, unless the user decides otherwise.
Write the integration. Follow the reference for the port:
stream when playback should start before the whole passage is
rendered, and synthesize for a file.v0.1.1) for reproducible builds.Test it. Add a test that synthesises one short sentence and checks that the audio is not empty. Ask before running it: it downloads the model. In a cloud environment, run it only if it can reach the internet, and say it ran there. Without a shell, give the command to run. If the user does not want a download now, still write the loudkit integration and leave the test unrun. Do not switch to a different speech engine unless the user asks for one.
clone-voice skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Python, JavaScript, TypeScript, Rust, Go, Swift
offline-tts, loudkit, text-to-speech, local-speech-synthesis
npx claudepluginhub loudreader/loudkit --plugin loudkit4 skills in this plugin
/choose-voiceHelp the user pick a loudkit voice by language or presentation, and let them hear it. Use when the user asks which voices or languages loudkit has, wants a voice for a given language, or wants to compare voices before generating audio./clone-voiceMake a loudkit voice profile from a short recording of a voice the user has the right to use, such as their own, locally and offline. Use when the user wants speech in their own voice, wants to clone or enroll a voice from a recording, or asks how to make a custom voice for loudkit./speak-locallyMake a spoken-audio WAV file from text or a text file with loudkit, an open-source engine that runs offline without a cloud API. In a coding agent with a shell, on the user's computer or in a cloud task, produce the file; without a shell, give the commands to run locally. Use when the user wants an audio file, narration or voice-over made from text or a document on their machine, not when they only want the assistant's reply read aloud.Other plugins' skills for the same job