Kokoro is an inference library for Kokoro-82M, installable via pip install kokoro. Kokoro-82M is an open-weight text-to-speech (TTS) model with only 82 million parameters. Despite its lightweight architecture, it is comparable in quality to larger models while being significantly faster and more cost-effective. The model weights are under the Apache license, so it can be deployed anywhere, from production environments to personal projects.
In terms of usage, the project provides basic and advanced Google Colab cells for running, along with samples for audition. Under the hood, kokoro uses misaki, a G2P library, available at https://github.com/hexgrad/misaki。
Installation and environment setup: To install espeak-ng on Windows, go to the espeak-ng releases page, click Latest release, download the appropriate *.msi file (e.g., espeak-ng-20191129-b702b03-x64.msi), then run the downloaded installer. For advanced configuration and usage on Windows, refer to the official espeak-ng Windows guide. On Mac M1/M2/M3/M4 devices, you can explicitly set the environment variable PYTORCH_ENABLE_MPS_FALLBACK=1 to enable GPU acceleration. If you encounter dependency issues, you can use the project-provided conda environment.yml.
Project acknowledgments: @yl4579 designed the StyleTTS 2 architecture; @Pendrokar added Kokoro as a contender to the TTS Spaces Arena; thanks to everyone who contributed synthesized training data; special thanks to all compute sponsors. The Discord server address is https://discord.gg/QuGxSWBfQy。Kokoro is a Japanese word meaning "heart" or "spirit"; it is also the name of a character appearing alongside Misaki in the Terminator series.