Published: January 16, 2025
28
115
703

Introducing Kokoro.js, a new JavaScript library for running Kokoro TTS, an 82 million parameter text-to-speech model, 100% locally in the browser w/ WASM. Powered by ๐Ÿค— Transformers.js. WebGPU support coming soon! ๐Ÿ‘‰ npm i kokoro-js ๐Ÿ‘ˆ Link to demo (+ sample code) in ๐Ÿงต

You can get started in just a few lines of code! ๐Ÿง‘โ€๐Ÿ’ป Huge kudos to the Kokoro TTS community, especially @taylorchu for the ONNX exports and Hexgrad for the amazing project! None of this would be possible without you all! ๐Ÿค— Try it out yourself: https://huggingface.co/spaces/...

Image in tweet by Xenova

The model is also extremely resilient to quantization. The smallest variant is only 86 MB in size (down from the original 326 MB), with no noticeable difference in audio quality! ๐Ÿคฏ Link to models/samples: https://huggingface.co/onnx-co...

Share this thread

Read on Twitter

View original thread

Navigate thread

1/3