anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Turns text into speech with a small open-weight model of 82 million parameters, with 54 voices in version 1.0. For developers who want fast, low-cost speech in their apps.
Kokoro-82M is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download hexgrad/Kokoro-82M
Kokoro is a text-to-speech model with 82 million parameters and Apache-licensed weights. The card says it matches the quality of larger models while running faster and costing less. Version 1.0 lists 8 languages and 54 voices, and the model is built on StyleTTS2-LJSpeech.
It suits developers and makers who want natural speech from a small model they can run themselves or buy through a hosted API.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | App developers | Add spoken replies to an app | A voice that reads out chat answers |
| Accessibility | Product teams | Read on-screen text aloud | A reader for articles and documents |
| Media | Content creators | Narrate short videos and explainers | A voice-over made from a script |
| Education | Course makers | Turn lesson text into audio | Audio versions of study notes |
If you want to clone a specific person's voice, you can skip it, since the card says its training used no custom voice clones.
| Use case | Who | What they get back |
|---|---|---|
| Narration | Creators | WAV audio of your script in a chosen voice |
| App voice output | Developers | Speech generated on demand, chunk by chunk |
| Trying voices | Hobbyists | Sample audio in any of the listed voices |
You need these first:
!pip install -q kokoro>=0.9.2 soundfile !apt-get -qq -y install espeak-ng > /dev/null 2>&1
If you only want the weights, this downloads them.
pip install -U huggingface_hub hf download hexgrad/Kokoro-82M
Set a variable called text to the words you want spoken. Then create the pipeline and loop over what it yields, writing each chunk of audio to a WAV file at 24000 Hz.
from kokoro import KPipeline
import soundfile as sf
import torch
pipeline = KPipeline(lang_code='a')
generator = pipeline(text, voice='af_heart')
for i, (gs, ps, audio) in enumerate(generator):
print(i, gs, ps)
sf.write(f'{i}.wav', audio, 24000)| Tool | What it does |
|---|---|
| KPipeline | Builds the speech pipeline for a language code |
| voice | Picks the voice, such as af_heart |
| sf.write | Saves each audio chunk as a WAV file at 24000 Hz |
| misaki | The G2P library that the kokoro package uses to turn text into phonemes |
You set text to a short paragraph and run the loop. Kokoro splits the speech into chunks, prints each one, and saves files named 0.wav, 1.wav and so on that you can play in any audio player.
It is a small voice engine that reads text aloud. A good first step is the demo Space, then the short Python loop above with one sentence.
The model is decoder-only, built on StyleTTS 2 and ISTFTNet, with no diffusion and no released encoder. It was trained on a few hundred hours of audio, using about 1000 hours of A100 80GB time.
Training was cheap by the card's own numbers.
Turns text into speech with a small open-weight model of 82 million parameters, with 54 voices in version 1.0. For developers who want fast, low-cost speech in their apps.
Made by hexgrad on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Kokoro is a text-to-speech model with 82 million parameters and Apache-licensed weights. The card says it matches the quality of larger models while running faster and costing less. Version 1.0 lists 8 languages and 54 voices, and the model is built on StyleTTS2-LJSpeech.
Who it suits: It suits developers and makers who want natural speech from a small model they can run themselves or buy through a hosted API.
Industry | Who uses it | How they use it | Example
Software | App developers | Add spoken replies to an app | A voice that reads out chat answers
Accessibility | Product teams | Read on-screen text aloud | A reader for articles and documents
Media | Content creators | Narrate short videos and explainers | A voice-over made from a script
Education | Course makers | Turn lesson text into audio | Audio versions of study notes
If you want to clone a specific person's voice, you can skip it, since the card says its training used no custom voice clones.
Where to use it:
Use case | Who | What they get back
Narration | Creators | WAV audio of your script in a chosen voice
App voice output | Developers | Speech generated on demand, chunk by chunk
Trying voices | Hobbyists | Sample audio in any of the listed voices
How to set it up: You need these first:
!pip install -q kokoro>=0.9.2 soundfile
!apt-get -qq -y install espeak-ng > /dev/null 2>&1
If you only want the weights, this downloads them.
pip install -U huggingface_hub
hf download hexgrad/Kokoro-82M
How to use it: Set a variable called text to the words you want spoken. Then create the pipeline and loop over what it yields, writing each chunk of audio to a WAV file at 24000 Hz.
from kokoro import KPipeline
import soundfile as sf
import torch
pipeline = KPipeline(lang_code='a')
generator = pipeline(text, voice='af_heart')
for i, (gs, ps, audio) in enumerate(generator):
print(i, gs, ps)
sf.write(f'{i}.wav', audio, 24000)
Tool | What it does
KPipeline | Builds the speech pipeline for a language code
voice | Picks the voice, such as af_heart
sf.write | Saves each audio chunk as a WAV file at 24000 Hz
misaki | The G2P library that the kokoro package uses to turn text into phonemes
Example: You set text to a short paragraph and run the loop. Kokoro splits the speech into chunks, prints each one, and saves files named 0.wav, 1.wav and so on that you can play in any audio player.
For newcomers and experts: It is a small voice engine that reads text aloud. A good first step is the demo Space, then the short Python loop above with one sentence.
The model is decoder-only, built on StyleTTS 2 and ISTFTNet, with no diffusion and no released encoder. It was trained on a few hundred hours of audio, using about 1000 hours of A100 80GB time.
Your text goes into the pipeline
misaki turns it into phonemes
The model generates the speech audio
Chunks are saved as WAV files
Good to know: Training was cheap by the card's own numbers.
Title: Training cost in USD
v0.19: 400 USD
v1.0: 600 USD
Total: 1000 USD
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download hexgrad/Kokoro-82M
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Kokoro-82M This page | 12,580,963 | 7,403 | — | apache-2.0 | |
| Chatterbox TTSShares text-to-speech | 2,440,902 | 1,911 | — | mit | |
| VieNeu-TTS v3 TurboShares text-to-speech | 2,151,800 | 109 | 131M | apache-2.0 | |
| Qwen3-TTS GGUFShares text-to-speech | 1,347,066 | 67 | 915M | apache-2.0 | |
| F5-TTSShares text-to-speech | 1,335,845 | 1,230 | — | cc-by-nc-4.0 | |
| VoxCPM2Shares text-to-speech | 984,860 | 1,783 | 2.3B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.