Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
๐ Kokoro Web: Free AI text-to-speech, online or self-hosted, OpenAI compatible!
| Date | Stars |
|---|---|
| 2026-07-24 | 672 |
| 2026-07-25 | 672 |
| 2026-07-28 | 672 |
| 2026-07-30 | 672 |
| 2026-07-31 | 673 |
| 2026-08-06 | 673 |
Today
โ stars today
This week
+1 stars this week
This month
โ stars this month
Momentum
0.0
growth rate 0.15%/day
<p align="center">
<img src="https://raw.githubusercontent.com/eduardolat/kokoro-web/377c69703033c21101da7639ecd8b878c417cb94/static/logo.png" alt="Kokoro Web Logo" width="100" height="100" style="border-radius: 20%;">
</p>
<h1 align="center">๐ Kokoro Web - Free AI Text to Speech</h1>
<p align="center">
<b>A powerful, browser-based AI voice generator that lets you create natural-sounding voices without installing anything.</b>
</p>
<p align="center">
Use it directly in your browser or self-host it for your own applications with OpenAI API compatibility!
</p>
## ๐ฌ Demo
<p align="center">
<img src="https://raw.githubusercontent.com/eduardolat/kokoro-web/377c69703033c21101da7639ecd8b878c417cb94/static/demo.gif" alt="Kokoro Web Demo" width="100%" style="max-width: 800px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">
</p>
<p align="center">
<b>Try it now:</b> <a href="https://voice-generator.pages.dev">https://voice-generator.pages.dev</a>
</p>
## โจ Key Features
- **Zero Installation** - Works directly in your browser, no downloads needed
- **Self Hostable** - If you need an OpenAI Compatible API
- **Free & Open Source** - 100% free for personal and commercial use
- **Multiple Languages** - Support for various language accents
- **Voice Customization** - Simple and advanced voice configuration options
- **WebGPU Acceleration** - Utilize your GPU for faster generation in supported browsers
## ๐ง Model
Kokoro Web is powered by [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M), an open-weight 82 million parameter Text-to-Speech model available on Hugging Face.
> Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, Kokoro can be deployed anywhere from production environments to personal projects.
This is one of the top-ranked models in [TTS Arena](https://huggingface.co/spaces/TTS-AGI/TTS-Arena), just behind ElevenLabs.
Special thanks to the model creators for making this technology accessible.
## ๐ Usage
### Option 1: Use it online
Visit the hosted version at [voice-generator.pages.dev](https://voice-generator.pages.dev) and start generating voices instantly!
### Option 2: Self-host with Docker
The self-hosted version includes an OpenAI-compatible API that works as a drop-in replacement for applications using [OpenAI's text-to-speech API](https://platform.openai.com/docs/guides/text-to-speech).
```yaml
services:
kokoro-web:
image: ghcr.io/eduardolat/kokoro-web:latest
ports:
- "3000:3000"
environment:
- KW_SECRET_API_KEY=your-api-key
volumes:
- ./kokoro-cache:/kokoro/cache # Cache downloaded models and voices
restart: unless-stopped
```
You can adjust the `compose.yaml` according to your needs or use docker run directly.
Then access the web UI at http://localhost:3000 and the API at http://localhost:3000/api/v1/index.html
## โ๏ธ Environment variables
- **KW_SECRET_API_KEY** - Your API key for authentication. If left blank, authentication will not be activated
- **KW_PUBLIC_NO_TRACK** - Opt out of anonymous usage analytics
## ๐ API Integration
Kokoro Web provides an OpenAI-compatible API that works as a drop-in replacement for applications using OpenAI's text-to-speech service:
```javascript
import fs from "fs";
import path from "path";
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: 'http://your-kokoro-host/api/v1',
apiKey: 'your-kokoro-api-key',
});
const speechFile = path.resolve("./speech.mp3");
const mp3 = await openai.audio.speech.create({
model: "model_q8f16",
voice: "af_heart",
input: "Today is a wonderful day to build something people love!",
});
const buffer = Buffer.from(await mp3.arrayBuffer());
await fs.promises.writeFile(speechFile, buffer);
```
## ๐ License
Kokoro Web is [MIT Licensed](LICENSE)
---
<p align="center">
Made with โค๏ธ by
<a href="https://eduardo.lat?Excerpt of 4,088 characters
Read on GitHub246
Would you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:dc65a2917253c456, topic:text-to-speech, topic:tts, desc:text-to-speech