Mindket

Kokoro Text-to-Speech (WebGPU)

Newversion 1 · updated

Overview

Runs the Kokoro text-to-speech model in your browser with WebGPU, so typed text is read aloud. For anyone who wants to hear the model or learn from a browser speech demo.

Kokoro Text-to-Speech (WebGPU) is a kit in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • A browser, if you only use the Space online
  • Python and pip, to download the Space's files
  • npm, only if you follow the README's dev-server route
Runs in
  • A web browser, on the Space's own page at Hugging Face
  • A browser with WebGPU, for a local copy of the page
  • A copy of the files on your own computer, using Python to download them on Windows, macOS or Linux
Start with
pip install -U huggingface_hub
hf download webml-community/kokoro-webgpu --repo-type space --local-dir kokoro-webgpu
cd kokoro-webgpu

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This Space runs the Kokoro text-to-speech model in your browser, using WebGPU and Transformers.js. You type text and the model reads it aloud. The Space is a static page, and the model it names is the 82M ONNX build of Kokoro.

Who it suits

People who want to hear what a small speech model sounds like, and web developers who want a browser-only text-to-speech example to learn from.

IndustryWho uses itHow they use itExample
Web developmentFront-end developersStudy how a speech model runs inside a web pageReading the React and Vite demo's code
EducationTeachers and studentsHear a passage read aloudPasting a short paragraph and listening to it
AccessibilityContent makersCheck how text sounds when spokenListening to a draft before publishing it

You can skip it if your browser has no WebGPU support, since the model needs it to run.

Where to use it

  • A web browser, on the Space's own page at Hugging Face
  • A browser with WebGPU, for a local copy of the page
  • A copy of the files on your own computer, using Python to download them on Windows, macOS or Linux
Use caseWhoWhat they get back
Hear text read aloudAnyone with a browserSpeech made by the Kokoro model from the text they type
Learn the codeWeb developersA small React and Vite app that runs Kokoro through Transformers.js

How to set it up

  • A browser, if you only use the Space online
  • Python and pip, to download the Space's files
  • npm, only if you follow the README's dev-server route
  1. Open the Space's page on Hugging Face to use it online. Nothing needs installing.
  2. To keep the files, install the huggingface_hub package and download the Space's files.
  3. Move into the new folder and open index.html in a web browser.
pip install -U huggingface_hub
hf download webml-community/kokoro-webgpu --repo-type space --local-dir kokoro-webgpu
cd kokoro-webgpu

For the README's route, clone the Kokoro repository from GitHub, then run these commands from inside its folder.

cd kokoro/kokoro.js/demo
npm i
npm run dev

The README then says to open the local address it names, on port 5173, in your browser.

How to use it

Open the page and type the text you want spoken, then start the speech with the page's controls. The model runs in your browser, so you hear the result there. The first run may take a moment while the model files load.

ToolWhat it does
npm run devStarts the development server for the demo
index.htmlThe page you open in a browser after downloading the Space's files

Example

You open the page, type a short sentence and start the speech. After the model loads, you hear the sentence read aloud in the browser.

For newcomers and experts

If you are new to this, open the Space and have it read one short sentence. You need nothing beyond a browser that supports WebGPU.

For experts, the app is a simple React and Vite project that loads Kokoro through Transformers.js and the ONNX build named onnx-community/Kokoro-82M-ONNX. Inference happens client-side on the GPU the browser exposes. The trade-off is browser support, since WebGPU is not available everywhere.

  1. Open the page
  2. Type the text to speak
  3. Transformers.js loads the Kokoro model
  4. The model runs in your browser
  5. You hear the speech

Good to know

  • Built as a static page, with index.html as the entry point
  • License: apache-2
  • Cost to run: none named
  • Data it reaches: model files loaded from Hugging Face, and the text you type

README and files

README

Kokoro Text-to-Speech (WebGPU)

Runs the Kokoro text-to-speech model in your browser with WebGPU, so typed text is read aloud. For anyone who wants to hear the model or learn from a browser speech demo.

Made by webml-community on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This Space runs the Kokoro text-to-speech model in your browser, using WebGPU and Transformers.js. You type text and the model reads it aloud. The Space is a static page, and the model it names is the 82M ONNX build of Kokoro.

Who it suits: People who want to hear what a small speech model sounds like, and web developers who want a browser-only text-to-speech example to learn from.

Industry | Who uses it | How they use it | Example
Web development | Front-end developers | Study how a speech model runs inside a web page | Reading the React and Vite demo's code
Education | Teachers and students | Hear a passage read aloud | Pasting a short paragraph and listening to it
Accessibility | Content makers | Check how text sounds when spoken | Listening to a draft before publishing it

You can skip it if your browser has no WebGPU support, since the model needs it to run.

Where to use it:

  • A web browser, on the Space's own page at Hugging Face
  • A browser with WebGPU, for a local copy of the page
  • A copy of the files on your own computer, using Python to download them on Windows, macOS or Linux
Use case | Who | What they get back
Hear text read aloud | Anyone with a browser | Speech made by the Kokoro model from the text they type
Learn the code | Web developers | A small React and Vite app that runs Kokoro through Transformers.js

How to set it up:

  • A browser, if you only use the Space online
  • Python and pip, to download the Space's files
  • npm, only if you follow the README's dev-server route
  1. Open the Space's page on Hugging Face to use it online. Nothing needs installing.
  2. To keep the files, install the huggingface_hub package and download the Space's files.
  3. Move into the new folder and open index.html in a web browser.
pip install -U huggingface_hub
hf download webml-community/kokoro-webgpu --repo-type space --local-dir kokoro-webgpu
cd kokoro-webgpu

For the README's route, clone the Kokoro repository from GitHub, then run these commands from inside its folder.

cd kokoro/kokoro.js/demo
npm i
npm run dev

The README then says to open the local address it names, on port 5173, in your browser.

How to use it: Open the page and type the text you want spoken, then start the speech with the page's controls. The model runs in your browser, so you hear the result there. The first run may take a moment while the model files load.

Tool | What it does
npm run dev | Starts the development server for the demo
index.html | The page you open in a browser after downloading the Space's files

Example: You open the page, type a short sentence and start the speech. After the model loads, you hear the sentence read aloud in the browser.

For newcomers and experts: If you are new to this, open the Space and have it read one short sentence. You need nothing beyond a browser that supports WebGPU.

For experts, the app is a simple React and Vite project that loads Kokoro through Transformers.js and the ONNX build named onnx-community/Kokoro-82M-ONNX. Inference happens client-side on the GPU the browser exposes. The trade-off is browser support, since WebGPU is not available everywhere.

Open the page
Type the text to speak
Transformers.js loads the Kokoro model
The model runs in your browser
You hear the speech

Good to know:

  • Built as a static page, with index.html as the entry point
  • License: apache-2
  • Cost to run: none named
  • Data it reaches: model files loaded from Hugging Face, and the text you type

On Hugging Face, 13 November 2026

  • Likes: 369
  • Built with: static
  • License: apache-2.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Kokoro Text-to-Speech (WebGPU) This page369staticapache-2.0
DALL·E miniShares static5,750staticapache-2.0
DALL·E mini by flax-communityShares static342staticapache-2.0
Supertonic 3 (TTS)Shares static291staticopenrail
XortronDesktopShares static30staticwtfpl
AI Image UpscalerShares static21staticmit
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Searched

More from Mindket

See all from Mindket

Ornith-1.5-35B-A3B-NVFP4

ornith-ai · Kit

Writes code and handles terminal agent tasks, a mixture-of-experts model using about 3B parameters per token, packaged as an NVFP4 copy. For developers hosting…

New

Licon MSR for LTX-2.5

LiconStudio · Kit

Keeps characters, clothing, objects and backgrounds consistent in generated video by feeding the model up to five reference images. A LoRA for LTX-2.5 in Comfy…

New

GLiNER2.5 Base

fastino · Kit

Pulls entities, relations and structured records out of English text, and classifies it, from one schema, running locally on CPU, CUDA or MPS. It suits develop…

New

Similar in Productivity

See all in Productivity

Mega-ASR

zhifeixie · Kit

Transcribes English and Chinese speech from noisy, echoey, clipped or overlapping recordings, and routes clean audio to the base model. For teams with difficul…

New

GLM-Image

zai-org · Kit

Generates and edits images from text and reference pictures, with strong text rendering inside images, using an autoregressive plus diffusion design. For creat…

New

Controls the pose of people in Stable Diffusion XL images by feeding the model a body-pose skeleton drawing. For artists and developers who want figures to sta…

New