Unlimited text-to-speech in the Browser using Kokoro-JS, 100% local, 100% open source
372
stars
11
commits
JavaScript
primary language
Jun 12, 2025
updated
Unlimited text-to-speech using Kokoro-JS, 100% local, 100% open source
https://rhulha.github.io/StreamingKokoroJS/
Streaming-Kokoro is a web-based text-to-speech application that leverages the Kokoro-82M model to generate high-quality speech audio entirely in the browser. The application runs completely in the browser without requiring any server-side processing or API calls, ensuring privacy and offline functionality.
The application can use a local model instead of downloading from HuggingFace. Example:
if (self.location.hostname === "localhost") {
env.allowLocalModels = true;
model_id = "./my_model/";
}
This project uses the Kokoro-82M-v1.0-ONNX model from Hugging Face, which provides high-quality text-to-speech capabilities in a relatively compact package suitable for browser-based applications.
This project is open source under the Apache 2 License.
JavaScript
79.2%
CSS
11.5%
HTML
9.3%
Unlimited text-to-speech in the Browser using Kokoro-JS, 100% local, 100% open source
372
stars
11
commits
JavaScript
primary language
Jun 12, 2025
updated
Unlimited text-to-speech using Kokoro-JS, 100% local, 100% open source
https://rhulha.github.io/StreamingKokoroJS/
Streaming-Kokoro is a web-based text-to-speech application that leverages the Kokoro-82M model to generate high-quality speech audio entirely in the browser. The application runs completely in the browser without requiring any server-side processing or API calls, ensuring privacy and offline functionality.
The application can use a local model instead of downloading from HuggingFace. Example:
if (self.location.hostname === "localhost") {
env.allowLocalModels = true;
model_id = "./my_model/";
}
This project uses the Kokoro-82M-v1.0-ONNX model from Hugging Face, which provides high-quality text-to-speech capabilities in a relatively compact package suitable for browser-based applications.
This project is open source under the Apache 2 License.
JavaScript
79.2%
CSS
11.5%
HTML
9.3%