news.volyx.in

Local, CPU-Friendly, High-Quality TTS (Text-to-Speech) with Kokoro (ariya.io)

514 points by speckx · 4 days ago · 97 comments on HN

Article summary

The article discusses Kokoro, a local, CPU-friendly, high-quality text-to-speech (TTS) system that can generate realistic speech in multiple languages. Kokoro has 82M parameters and provides around 50 distinct voices, primarily optimized for English. The system can be set up using a pre-made container image called Kokoro-FastAPI, which includes pre-downloaded voice models. The article also provides examples of how to use Kokoro with JavaScript and Python.

Main themes

  • Text-to-Speech Systems
  • Local TTS Solutions
  • CPU-Friendly TTS
  • Kokoro TTS
  • Speech Synthesis
  • Privacy-Focused TTS

What commenters say

  • Kokoro is a decent TTS system, but some users find Pocket-TTS to be better, especially when using a ripped voice.
  • The ONNX version of Pocket-TTS performs better than the PyTorch version for some users, while others find the opposite to be true.
  • Kokoro has a weakness in handling single words or short utterances, which can make it unsuitable for certain use cases.
  • Some users have successfully integrated Kokoro with other systems, such as Home Assistant, and find it to be a natural-sounding and small TTS solution.
  • There are other local TTS solutions available, such as F5-TTS, that may offer similar or better quality to Kokoro.
  • Kokoro can be optimized for better performance on certain hardware, such as phones, by dropping expensive layers or using alternative models.
  • Some users appreciate the privacy-focused aspect of local TTS solutions like Kokoro, which do not require sending data to external servers.
  • Kokoro has been used in various projects, including accessibility products and browser extensions, to provide high-quality TTS capabilities.