Downloads · 30 days
0
skillsafeai/kokoro-82m-onnx-webgpu-nostft
kokoro-82m-onnx-webgpu-nostft is a text-to-speech model from skillsafeai. Use it when you need text read aloud. The card lists the license as apache-2.0.
The fp32 onnx/model.onnx from onnx-community/Kokoro-82M-v1.0-ONNX at revision 1939ad2a, with the graph cut at decoder.generator.convpost. The weights are unchanged.
Downloads · 30 days
0
Access
Public
Updated Oct 7, 2026
Repo size
408 MB
Likes
0
Public
Click a slice to open those files.
.onnx408 MB · 100%
From the Hugging Face model README
The fp32 onnx/model.onnx from onnx-community/Kokoro-82M-v1.0-ONNX
at revision 1939ad2a, with the graph cut at decoder.generator.conv_post. The weights are unchanged.
Why: on onnxruntime-web 1.27 WebGPU, the full graph's iSTFT tail (ConvTranspose/ScatterND) returns zeros for every sample past about 65,528 (2.7 s at 24 kHz). Callers then have to feed short phrases, and that audibly flattens the prosody.
Inputs: input_ids int64 [1, n], style float32 [1, 256], speed float32 [1] (same as upstream).
Output: spec_phase float32 [1, 22, frames].
iSTFT to run in the caller (n_fft 20, hop 5; istft_basis.json = the 22x20 inverse basis):
mag = exp(x[0:11]); ph = sin(x[11:22]); c = concat(mag*cos(ph), mag*sin(ph)) # 22 x F
y = conv_transpose1d(c, basis[22,1,20], stride=5) # 5(F-1)+20
y[1:20] /= window_sum[1:20] # as exported: only the first window is normalised
waveform = 4 * y[10:-10]
This matches the full graph's waveform to within 6e-7 (max abs, CPU). Kokoro-82M is by hexgrad, released under Apache-2.0.
Smaller copies of the files above for first-time downloads. Weights are stored as int8, symmetric, one scale per
output channel, and each is followed by a DequantizeLinear node that turns it back into the original type
(fp16 graphs dequantize straight to fp16, so their opset goes from 17 to 19). The graph, inputs and outputs are
otherwise unchanged, and the maths runs at the original precision. Made with wq.py (skillsafe-app
dev/local-character/slim/).
Measured on onnxruntime-web 1.27 WebGPU (Apple GPU):