Kokoro
Apache 2.0Fast local narration. A small model that prepares a long book in less time.
- Model size
- 82 million parameters
- Runs on
- This Mac, offline
- API key
- None
Readase comes with two voices that run on your Mac. You can add a cloud provider, a speech server or a program you write, and pick any of them in Listen.
Both run offline on Apple silicon. They need no account and no API key, and your text stays on your Mac.
Fast local narration. A small model that prepares a long book in less time.
Expressive local narration. A larger model with more range in pace and tone.
Each added voice is a folder with one voice.json file. Readase lists every voice it finds there in Listen.
~/Library/Application Support/com.readase.Readase/CustomVoices/<id>/voice.json
Keys stay in an environment variable or a file on your Mac, never in voice.json. A cloud provider receives the text it reads. A local server or helper sends nothing out.
Use any voice in your ElevenLabs library, cloned voices included. Copy the voice ID from the library and choose a model.
ELEVENLABS_API_KEY{
"id": "eleven-narrator",
"name": "ElevenLabs narrator",
"kind": "elevenlabs",
"model": "eleven_multilingual_v2",
"voice": "YOUR_VOICE_ID",
"apiKeyEnv": "ELEVENLABS_API_KEY"
}
Use OpenAI TTS, or any server with the same /v1/audio/speech API, such as Kokoro-FastAPI, Speaches or vLLM. For a local server, set baseURL to its address and leave out the key.
OPENAI_API_KEYbaseURL{
"id": "openai-alloy",
"name": "OpenAI Alloy",
"kind": "openai",
"baseURL": "https://api.openai.com/v1",
"model": "gpt-4o-mini-tts",
"voice": "alloy",
"apiKeyEnv": "OPENAI_API_KEY"
}
{
"id": "kokoro-server",
"name": "Kokoro server",
"kind": "openai",
"baseURL": "http://127.0.0.1:8880/v1",
"model": "kokoro",
"voice": "af_heart"
}
Use a Sonic voice from Cartesia. Copy the voice ID from your Cartesia account and choose a model.
CARTESIA_API_KEY{
"id": "cartesia-sonic",
"name": "Cartesia Sonic",
"kind": "cartesia",
"model": "sonic-3.6",
"voice": "YOUR_VOICE_ID",
"apiKeyEnv": "CARTESIA_API_KEY"
}
Run any program as a voice: a script, a compiled engine or a wrapper around another model. Readase starts it and talks to it over stdin and stdout with the helper protocol.
{
"id": "my-voice",
"name": "My voice",
"kind": "helper",
"command": ["./my-tts", "--voice", "alba"],
"modelRoot": "models"
}
idnamekindelevenlabs, openai, cartesia, http or helper. Required.voicemodelbaseURLopenai. The default is https://api.openai.com/v1.apiKeyEnvapiKeyFileurlhttp. Readase posts body as JSON to this address and expects WAV audio back.headershttp. In headers and body, {text} is the passage and ${NAME} is an environment variable.bodyhttp. The JSON request body.commandhelper. The program and its arguments. A relative path starts at the voice folder.modelRoothelper. Passed to the program as --model-root.A helper reads requests on stdin and writes replies on stdout. Each message is one JSON object on one line.
command with --model-root <dir> and sets READASE_HELPER_STARTUP=1. Write {"ready":true} when the model is loaded. Readase discards stderr.text is the passage. When there are two or more spans, parts lists them in order. Write the finished audio as a WAV file to output. style and priority are hints.progressive is true, stream pcm lines while you speak: base64 of 24 kHz, 16-bit signed little-endian, mono samples, at most 4096 frames a line. startFrame is where the line starts in the request audio.ok. starts gives the first frame of each item in parts, and Readase uses it to light up each word. When ok is false, put the reason in error.cancel stops a request. promote gives a queued request a new priority.{"id":"c-12","text":"I lived alone, in the woods. I lived there two years.","parts":["I lived alone, in the woods.","I lived there two years."],"style":"us-female","output":"/tmp/readase_narr_12.wav","progressive":true,"priority":"now"}{"promote":"c-13","priority":"now"}{"cancel":"c-14"}
{"ready":true}{"id":"c-12","startFrame":0,"pcm":"BASE64_PCM"}{"id":"c-12","startFrame":4096,"pcm":"BASE64_PCM"}{"id":"c-12","ok":true,"error":null,"starts":[0,40800]}
readase-cli writes the same voice folders, so a script or an AI coding agent can add a voice and switch to it.
readase-cli voices add elevenlabs --id eleven-narrator --voice YOUR_VOICE_ID --model eleven_multilingual_v2 --api-key-env ELEVENLABS_API_KEYreadase-cli voices add openai --id kokoro-server --base-url http://127.0.0.1:8880/v1 --model kokoro --voice af_heartreadase-cli voices add helper --id my-voice --command ./my-ttsreadase-cli voices use kokoro-server
{
"mcpServers": {
"readase": {
"command": "readase-cli",
"args": ["mcp"]
}
}
}
Add my Kokoro-FastAPI server at http://127.0.0.1:8880/v1 as a Readase voice with the af_heart voice, then make it the voice Readase uses.