K
hexgrad/kokoro★ 10,499 · JavaScript
An 82M-parameter TTS SDK for local, segment-by-segment speech synthesis
Apache-2.0 · Commercial Friendly
Side-by-side 2026 comparison in Voice, Vision & Video: huggingface/speech-to-speech leads in total GitHub adoption (★ 13.8k), while hexgrad/kokoro shows stronger 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
An 82M-parameter TTS SDK for local, segment-by-segment speech synthesis
A modular speech cascade for self-hosted voice agents over OpenAI Realtime
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | hexgrad/kokoro | huggingface/speech-to-speech |
|---|---|---|
| Total GitHub Stars | ★ 10,499 | ★ 13,825 |
| 24h / 7d Velocity | +1 / +149 | +8 / +41 |
| 7-Day Trend Curve | ||
| Engineering Health | C · 49/100 | A+ · 97/100 |
| Deployment Signals | Local AI · GPU | Docker · Self-Hosted · Local AI · CLI · GPU · API |
| Primary Language | JavaScript | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 16mo ago | Updated today |
| Latest Release | Rolling commits (main) | v1.1.0 |
| Best For | Python applications that need local narration, WAV generation, or segment-by-segment voice playback and can manage their own runtime and model assets | Teams building self-hosted voice assistants, browser demos, or robot interfaces that need OpenAI Realtime integration, inspectable transcripts, and independent control of speech and language models |
KPipeline yields text, phonemes, and audio per segment for playback or export.!pip install -q kokoro>=0.9.4 soundfile !apt-get -qq -y install espeak-ng > /dev/null 2>&1 from kokoro import KPipeline from IPython.display import display, Audio import soundfile as sf import torch pipeline = KPipeline(lang_code='a') text = ''' [Kokoro](/kˈOkəɹO/) is an open-weight TTS model with 82 million parameters. Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, [Kokoro](/kˈOkəɹO/) can be deployed anywhere from production environments to personal projects. ''' generator = pipeline(text, voice='af_heart') for i, (gs, ps, audio) in enumerate(generator): print(i, gs, ps) display(Audio(data=audio, rate=24000, autoplay=i==0)) sf.write(f'{i}.wav', audio, 24000)
serve, talk, and an in-process loopback local mode.--enable_visemes serve different client needs.python3 -m venv .venv source .venv/bin/activate pip install speech-to-speech speech-to-speech local
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy