kokoro-cloning-v1 ONNX
ONNX export of AKinvox/kokoro-cloning-v1 (LoRA adapter merged into hexgrad/Kokoro-82M, plus the reference encoders and mapper) for onnxruntime-web / WebGPU.
| file | inputs | outputs |
|---|---|---|
enroll.onnx |
wave24 [1,N] float32 reference at 24 kHz, ref_ids [1,P] int64 transcript phoneme ids (with 0 at both ends), wavlm [1,512] x-vector |
style [1,256], memory [1,M,192] |
synth.onnx |
input_ids [1,T] int64 (with 0 at both ends), style [1,256], memory [1,M,192], speed [1] |
waveform [S] at 24 kHz, duration [T] |
The wavlm x-vector comes from microsoft/wavlm-base-plus-sv on the reference resampled to 16 kHz (Xenova/wavlm-base-plus-sv onnx/model.onnx works). Phonemes use misaki (en-US); vocab.json maps phoneme symbols to ids.
Parity against the PyTorch reference (CPU, onnxruntime 1.2x): conditioning style max abs diff < 1e-6, memory < 5e-6, predicted durations identical; waveforms differ only by the random excitation noise of the vocoder.
export.py is the export script (run against the official kokoro_cloning package). Batch size 1.
Demo: mrfakename/kokoro-cloning-webgpu (in-browser), mrfakename/kokoro-cloning (PyTorch).