ONNX Model Zoo

zukky/GPT-SoVITS-ONNX-DLL

By zukky · ↓ 0 · ♥ 0 · Updated 2026-01-27

What's in this repo

This page lists the files in zukky/GPT-SoVITS-ONNX-DLL, including cnhubert_base.onnx, s1v3_decode.onnx, s1v3_prefill.onnx and more.

  • 6 ONNX models (.onnx files)
  • 17 files, including 6 .onnx, 4 .py, 1 .md, 1 .txt, 1 .dll, 1 .pdb
  • Repository size ~1.6 GB
  • Last updated 2026-01-27

ONNX files

File Size Download
onnx_models/cnhubert_base.onnx 360 MB Download
onnx_models/s1v3_decode.onnx 301 MB Download
onnx_models/s1v3_prefill.onnx 304 MB Download
onnx_models/s2Gv2ProPlus_decode.onnx 323 MB Download
onnx_models/sovits_prompt_encoder.onnx 7.5 MB Download
onnx_models/sv_embedder.onnx 174 MB Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README


license: mit library_name: onnxruntime tags:

  • text-to-speech
  • tts
  • onnx
  • dll
  • voice-clone

GPT-SoVITS ONNX DLL Bundle

This Hugging Face repository provides minimal runtime bundles for GPT-SoVITS v2Pro:

  • Rust preprocessing library (Windows DLL / Linux SO)
  • ONNX models (single-file .onnx graphs)
  • Python sample that stitches the DLL helpers + ONNX Runtime sessions

Important: ONNX Runtime is not bundled. Install onnxruntime (CPU) or onnxruntime-gpu.

Directory Layout

Windows bundle

dist/dll_release/
	gpt_sovits_preprocess.dll
	gpt_sovits_preprocess.pdb
	onnx_models/
		cnhubert_base.onnx
		hps.json
		s1v3_prefill.onnx
		s1v3_decode.onnx
		s2Gv2ProPlus_decode.onnx
		sovits_prompt_encoder.onnx
		sv_embedder.onnx
	examples/python_dll_call/
		lib.py
		run_pipeline.py

Linux bundle

dist/dll_release_linux/
	libgpt_sovits_preprocess.so
	onnx_models/
		cnhubert_base.onnx
		hps.json
		s1v3_prefill.onnx
		s1v3_decode.onnx
		s2Gv2ProPlus_decode.onnx
		sovits_prompt_encoder.onnx
		sv_embedder.onnx
	examples/python_dll_call/
		lib.py
		run_pipeline.py

Quick Start (Python)

1. Install dependencies

python -m pip install numpy onnxruntime

For GPU:

python -m pip install numpy onnxruntime-gpu

2. Run (Windows)

python examples\python_dll_call\run_pipeline.py ^
	--dll .\gpt_sovits_preprocess.dll ^
	--sovits-config .\onnx_models\hps.json ^
	--sovits-onnx .\onnx_models\s2Gv2ProPlus_decode.onnx ^
	--prompt-onnx .\onnx_models\sovits_prompt_encoder.onnx ^
	--ssl-onnx .\onnx_models\cnhubert_base.onnx ^
	--sv-onnx .\onnx_models\sv_embedder.onnx ^
	--semantic-prefill .\onnx_models\s1v3_prefill.onnx ^
	--semantic-decode .\onnx_models\s1v3_decode.onnx ^
	--ref-wav C:\path\to\ref.wav ^
	--ref-text "C:\path\to\ref.txt" ^
	--text "こんにちは。" ^
	--output .\outputs\dll_pipeline.wav ^
	--ref-lang all_ja ^
	--text-lang all_ja

3. Run (Linux)

python examples/python_dll_call/run_pipeline.py \
	--dll ./libgpt_sovits_preprocess.so \
	--sovits-config ./onnx_models/hps.json \
	--sovits-onnx ./onnx_models/s2Gv2ProPlus_decode.onnx \
	--prompt-onnx ./onnx_models/sovits_prompt_encoder.onnx \
	--ssl-onnx ./onnx_models/cnhubert_base.onnx \
	--sv-onnx ./onnx_models/sv_embedder.onnx \
	--semantic-prefill ./onnx_models/s1v3_prefill.onnx \
	--semantic-decode ./onnx_models/s1v3_decode.onnx \
	--ref-wav /path/to/ref.wav \
	--ref-text /path/to/ref.txt \
	--text "Hello world." \
	--output ./outputs/dll_pipeline.wav \
	--ref-lang all_en \
	--text-lang all_en

CPU / GPU switching

  • Default: CUDA if available, otherwise CPU.
  • Force CPU:
python examples\python_dll_call\run_pipeline.py --device cpu ...

Required Files

Required:

  • gpt_sovits_preprocess.dll or libgpt_sovits_preprocess.so
  • onnx_models/*.onnx + onnx_models/hps.json
  • examples/python_dll_call/run_pipeline.py

Optional:

  • gpt_sovits_preprocess.pdb (Windows debug symbols)

Notes

  • ONNX files are single-file graphs (no external .onnx.data).
  • Samples are not included. Provide your own reference audio/text.
  • First load can be slow due to model size.

Troubleshooting

  • DLL/SO not found: pass the absolute path via --dll.
  • CUDAExecutionProvider not available: install onnxruntime-gpu or use --device cpu.
  • InvalidArgument / input shape: ensure reference audio is mono. The script will resample.

License

MIT. Derived from GPT-SoVITS: https://github.com/RVC-Boss/GPT-SoVITS

Third-Party Licenses (DLL)

See THIRD_PARTY_LICENSES.txt for the Rust dependency license report used by the DLL bundle.

Model info

text-to-speech onnxruntime
onnxruntime onnx text-to-speech tts dll voice-clone license:mit region:us
↓ 0 ♥ 0

Created: 2026-01-27

Updated: 2026-01-27

View on Hugging Face

Files (17)

.gitattributes
README.md
THIRD_PARTY_LICENSES.txt
examples/python_dll_call/lib.py
examples/python_dll_call/run_pipeline.py
examples/python_so_call/lib.py
examples/python_so_call/run_pipeline.py
gpt_sovits_preprocess.dll
gpt_sovits_preprocess.pdb
libgpt_sovits_preprocess.so
onnx_models/cnhubert_base.onnx 360 MB ONNX
onnx_models/hps.json
onnx_models/s1v3_decode.onnx 301 MB ONNX
onnx_models/s1v3_prefill.onnx 304 MB ONNX
onnx_models/s2Gv2ProPlus_decode.onnx 323 MB ONNX
onnx_models/sovits_prompt_encoder.onnx 7.5 MB ONNX
onnx_models/sv_embedder.onnx 174 MB ONNX

Related models