OpenVoice V2 tone color converter — ONNX (for Meari)
ONNX export of the tone color converter from OpenVoice V2 (MIT), used by Meari to read text in a user's own voice without PyTorch.
| File | What |
|---|---|
tone_encoder.onnx |
linear spectrogram [1, T, 513] → tone embedding [1, 256, 1] (ref_enc) |
tone_converter.onnx |
spec [1, 513, T], lengths [1] (int64), source/target tone [1, 256, 1], tau [1] → audio [1, 1, N] at 22,050 Hz |
openvoice.json |
spectrogram settings and provenance |
- Source checkpoint:
myshell-ai/OpenVoiceV2@f36e7edfe1684461a8343844af60babc2efbb727,converter/checkpoint.pth(sha2569652c27e92b6b2a91632590ac9962ef7ae2b712e5c5b7f4c34ec55ee2b37ab9e). Weights are unchanged; only the graph format differs. - Spectrogram (computed outside the graph): reflect padding of
(n_fft - hop) / 2, periodic Hann window, no centering, magnitudesqrt(re² + im² + 1e-6). Withtau = 0the output matches PyTorch within 2e-5. - Export script:
engine/spikes/voice_add/export_openvoice_onnx.pyin the Meari repository.
License: MIT (same as OpenVoice). Copyright 2024 MyShell.ai — see LICENSE.