Mindket

Kokoro-82M-v1.0-ONNX

Newversion 1 · updated

Overview

Turns English text into spoken audio with Kokoro, an 82 million parameter text-to-speech model packaged as ONNX files for JavaScript and Python. For developers who want a small local voice in an app.

Kokoro-82M-v1.0-ONNX is a kit in the Developer 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
  • Node with npm, or Python with onnxruntime
  • Room for the ONNX file you pick, from full precision to 4-bit versions
Runs in
  • A Node app through the kokoro-js library
  • A browser app built on transformers.js
  • A Python script that uses onnxruntime
Start with
npm i kokoro-js

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Kokoro is a text-to-speech model with 82 million parameters. You give it English text and it returns audio. This repository holds the ONNX version of the model, so you can run it from JavaScript with transformers.js or from Python with onnxruntime.

The model card calls it a frontier model for its size.

Who it suits

It suits developers who want to add speech output to a web page, a Node app or a Python script without calling a hosted voice service.

IndustryWho uses itHow they use itExample
SoftwareApp developersAdd a spoken voice to a Node or browser appRead a notification aloud
EducationCourse buildersTurn lesson text into audio filesMake a narrated study sheet
AccessibilityInterface designersRead page text out loud for usersVoice a long article
MediaContent teamsProduce narration drafts from scriptsSave a short clip as a WAV file

If you need voices in languages other than English, you can skip it, since the card lists English only.

Where to use it

The model runs wherever JavaScript with transformers.js or Python with onnxruntime runs, so Windows, macOS and Linux all work.

  • A Node app through the kokoro-js library
  • A browser app built on transformers.js
  • A Python script that uses onnxruntime
Use caseWhoWhat they get back
NarrationContent teamsA WAV file with the spoken text
Voice in an appDevelopersAudio generated on the user's side
Voice choiceDesignersA named voice such as af_bella

How to set it up

For JavaScript you need Node and the kokoro-js package from NPM. For Python you need onnxruntime, numpy and the downloaded model files.

  • Node with npm, or Python with onnxruntime
  • Room for the ONNX file you pick, from full precision to 4-bit versions
  1. Install the kokoro-js library with npm.
  2. Load the model by its id, and pick a data type.
  3. Generate audio from your text and choose a voice.
npm i kokoro-js

How to use it

You load the model once, then call generate with your text and a voice name. The result is an audio object you can save as a WAV file.

import { KokoroTTS } from "kokoro-js";

const model_id = "onnx-community/Kokoro-82M-ONNX";
const tts = await KokoroTTS.from_pretrained(model_id, {
  dtype: "q8", // Options: "fp32", "fp16", "q8", "q4", "q4f16"
});

const text = "Life is like a box of chocolates. You never know what you're gonna get.";
const audio = await tts.generate(text, {
  // Use `tts.list_voices()` to list all available voices
  voice: "af_bella",
});
audio.save("audio.wav");
ToolWhat it does
KokoroTTS.from_pretrainedLoads the model with the data type you choose
tts.generateTurns text into audio with a chosen voice
tts.list_voicesLists the voices you can pick
audio.saveWrites the audio to a WAV file

Example

You pass a short sentence to the generate call with the voice af_bella and save the result as audio.wav. The file holds that sentence spoken aloud.

For newcomers and experts

If you are new, copy the JavaScript snippet, run it once and play the WAV file it writes. Then change the sentence or the voice name and run it again.

If you know the field, the Python route works one step lower. You turn text into phonemes, map them to token ids, add pad ids at both ends and feed a style vector. The context length is 512 tokens.

  1. Text goes in as English words
  2. It becomes phonemes and token ids
  3. The ONNX model runs with a voice
  4. Audio comes out and is saved

Good to know

The card offers several ONNX builds, such as full precision, fp16, quantized and 4-bit versions, so you can trade size against quality.

  • License: apache-2.0
  • Cost to run: none named
  • Data it reaches: model files you download and the text you pass in
  • Not for: other languages, since the card lists English only

README and files

README

Kokoro-82M-v1.0-ONNX

Turns English text into spoken audio with Kokoro, an 82 million parameter text-to-speech model packaged as ONNX files for JavaScript and Python. For developers who want a small local voice in an app.

Made by onnx-community on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Kokoro is a text-to-speech model with 82 million parameters. You give it English text and it returns audio. This repository holds the ONNX version of the model, so you can run it from JavaScript with transformers.js or from Python with onnxruntime.

The model card calls it a frontier model for its size.

Who it suits: It suits developers who want to add speech output to a web page, a Node app or a Python script without calling a hosted voice service.

Industry | Who uses it | How they use it | Example
Software | App developers | Add a spoken voice to a Node or browser app | Read a notification aloud
Education | Course builders | Turn lesson text into audio files | Make a narrated study sheet
Accessibility | Interface designers | Read page text out loud for users | Voice a long article
Media | Content teams | Produce narration drafts from scripts | Save a short clip as a WAV file

If you need voices in languages other than English, you can skip it, since the card lists English only.

Where to use it: The model runs wherever JavaScript with transformers.js or Python with onnxruntime runs, so Windows, macOS and Linux all work.

  • A Node app through the kokoro-js library
  • A browser app built on transformers.js
  • A Python script that uses onnxruntime
Use case | Who | What they get back
Narration | Content teams | A WAV file with the spoken text
Voice in an app | Developers | Audio generated on the user's side
Voice choice | Designers | A named voice such as af_bella

How to set it up: For JavaScript you need Node and the kokoro-js package from NPM. For Python you need onnxruntime, numpy and the downloaded model files.

  • Node with npm, or Python with onnxruntime
  • Room for the ONNX file you pick, from full precision to 4-bit versions
  1. Install the kokoro-js library with npm.
  2. Load the model by its id, and pick a data type.
  3. Generate audio from your text and choose a voice.
npm i kokoro-js

How to use it: You load the model once, then call generate with your text and a voice name. The result is an audio object you can save as a WAV file.

import { KokoroTTS } from "kokoro-js";

const model_id = "onnx-community/Kokoro-82M-ONNX";
const tts = await KokoroTTS.from_pretrained(model_id, {
  dtype: "q8", // Options: "fp32", "fp16", "q8", "q4", "q4f16"
});

const text = "Life is like a box of chocolates. You never know what you're gonna get.";
const audio = await tts.generate(text, {
  // Use `tts.list_voices()` to list all available voices
  voice: "af_bella",
});
audio.save("audio.wav");
Tool | What it does
KokoroTTS.from_pretrained | Loads the model with the data type you choose
tts.generate | Turns text into audio with a chosen voice
tts.list_voices | Lists the voices you can pick
audio.save | Writes the audio to a WAV file

Example: You pass a short sentence to the generate call with the voice af_bella and save the result as audio.wav. The file holds that sentence spoken aloud.

For newcomers and experts: If you are new, copy the JavaScript snippet, run it once and play the WAV file it writes. Then change the sentence or the voice name and run it again.

If you know the field, the Python route works one step lower. You turn text into phonemes, map them to token ids, add pad ids at both ends and feed a style vector. The context length is 512 tokens.

Text goes in as English words
It becomes phonemes and token ids
The ONNX model runs with a voice
Audio comes out and is saved

Good to know: The card offers several ONNX builds, such as full precision, fp16, quantized and 4-bit versions, so you can trade size against quality.

  • License: apache-2.0
  • Cost to run: none named
  • Data it reaches: model files you download and the text you pass in
  • Not for: other languages, since the card lists English only

On Hugging Face, 13 November 2026

  • Task: text to speech
  • Library: transformers.js
  • Downloads in the last 30 days: 828,320
  • Likes: 290
  • License: apache-2.0
  • Languages: en
  • Based on: hexgrad/Kokoro-82M
  • Quantized versions: 7
  • Fine-tunes: 1
  • Tags: transformers.js, onnx, style_text_to_speech_2, text-to-speech

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download onnx-community/Kokoro-82M-v1.0-ONNX

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

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

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Kokoro-82M-v1.0-ONNX This page828,320290—apache-2.0
nomic-embed-text-v1.5Shares transformers.js · onnx11,809,681994137Mapache-2.0
SmolLM2-135M-InstructShares transformers.js · onnx841,106474135Mapache-2.0
Distil-Whisper distil-large-v3Shares transformers.js · onnx754,155386756Mmit
SmolLM2-1.7B-InstructShares transformers.js · onnx267,5197721.7Bapache-2.0
SmolLM2-360M-InstructShares transformers.js · onnx221,273244362Mapache-2.0
Numbers as Mindket last read them, on 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New