local-tts
Skill9 starsChanged 11 months agoMITView on GitHub
Local text-to-speech using MLX and Kokoro model
1 other project uses a version of this.
Adopted by
Most recently taken up by
- vdk888/local-ttstheir own version, first seen Apr 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- vdk888/local-tts★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assistant-architectSkill
- cfo-briefingSkill
- clawdbot-monitorSkill
- docxSkill
- drafts-managerSkill
- elevenlabs-ttsSkill
- freshservice-managerSkill
- google-workspaceSkill
- image-genSkill
- knowledge-managerSkill
- legislative-trackerSkill
- morning-briefingSkill
- multi-model-researchSkill
- obsidian-managerSkill
- omnifocus-managerSkill
- pai-monitorSkill
- pdfSkill
- pdf-to-markdownSkill
- personal-strategic-planningSkill
- pptxSkill
- presentation-masterSkill
- psd-athleticsSkill
- psd-brand-guidelinesSkill
- psd-instructional-visionSkill
- redrover-managerSkill
- researchSkill
- seven-advisorsSkill
- skill-creatorSkill
- sop-creatorSkill
- strategic-planning-managerSkill
- writerSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 103
MUST use
--withflags: - Do not use PEP 723 inline deps.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local TTS Skill
Generate high-quality speech audio locally using Apple Silicon MLX acceleration and the Kokoro-82M model. No API keys or recurring costs.
Quick Start
# Generate MP3 from text
uv run --with mlx-audio --with pydub skills/local-tts/scripts/generate_audio.py \
--text "Hello, this is a test." \
--output ~/Desktop/test.mp3
# Generate from file
uv run --with mlx-audio --with pydub skills/local-tts/scripts/generate_audio.py \
--file /tmp/script.txt \
--voice af_heart \
--output ~/Desktop/podcast.mp3
# List available voices
uv run --with mlx-audio skills/local-tts/scripts/list_voices.pyParameters
| Parameter | Required | Default | Description |
--text | One of text/file | - | Text to convert |
--file | One of text/file | - | Path to text file |
--voice | No | af_heart | Voice preset |
--output | Yes | - | Output file path (.mp3, .wav) |
--model | No | Kokoro-82M-bf16 | Model to use |
--list-voices | No | - | Show available voices |
Voice Presets
American English Female (prefix: af_)
af_heart- Warm, friendly (default)af_bella- Soft, calmaf_nova- Clear, professionalaf_river- Clear, confidentaf_sarah- Soft, expressive
American English Male (prefix: am_)
am_adam- Clear, professionalam_echo- Deep, smootham_liam- Articulate, conversationalam_michael- Soft, measured
British English (prefix: bf_, bm_)
bf_emma- Clear, refined femalebm_daniel- Clear, professional malebm_george- Distinguished male
See references/voices.md for full list.
Output Format
{
"success": true,
"file": "/Users/hagelk/Desktop/podcast.mp3",
"voice": "af_heart",
"model": "Kokoro-82M-bf16",
"characters": 9824,
"chunks": 20,
"duration_seconds": 612.5,
"generation_time": 45.2
}Performance
| Hardware | Speed | Notes |
| M3 Pro 36GB | ~3-4x realtime | First run slower (model loading) |
| M1/M2 Mac Mini 8GB | ~1.5x realtime | Works well for briefings |
| M1/M2 Mac Mini 16GB | ~2x realtime | Comfortable headroom |
Technical Details
- Model: Kokoro-82M-bf16 (~200MB download on first run)
- Sample rate: 24kHz mono
- Chunking: Text split at ~400 chars per chunk for quality
- Concatenation: Chunks joined seamlessly via pydub
- Formats: MP3, WAV, M4A, OGG
Important Notes
- MUST use
--withflags - Do not use PEP 723 inline deps. mlx-audio requires uv's cached environment. - First run is slower - Model downloads ~200MB and espeak dependencies initialize.
- Model cached at:
~/.cache/huggingface/hub/models--mlx-community--Kokoro-82M-bf16/
Integration with Morning Briefing
The morning-briefing skill uses this for podcast generation:
uv run --with mlx-audio --with pydub skills/local-tts/scripts/generate_audio.py \
--file /tmp/morning_briefing_podcast.txt \
--voice af_heart \
--output ~/Desktop/morning_briefing.mp3Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

