zukky/Qwen3-TTS-ONNX-DLL
By zukky · ↓ 0 · ♥ 9 · Updated 2026-01-27
What's in this repo
This page lists the files in zukky/Qwen3-TTS-ONNX-DLL, including code_predictor.onnx, code_predictor_embed.onnx, codec_embed.onnx and more.
- 19 ONNX models (.onnx files)
- 33 files, including 19 .onnx, 6 .json, 3 .txt, 1 .md, 1 .py, 1 .h
- Last updated 2026-01-27
ONNX files
| File | Size | Download |
|---|---|---|
| onnx_kv/code_predictor.onnx | — | Download |
| onnx_kv/code_predictor_embed.onnx | — | Download |
| onnx_kv/codec_embed.onnx | — | Download |
| onnx_kv/speaker_encoder.onnx | — | Download |
| onnx_kv/talker_decode.onnx | — | Download |
| onnx_kv/talker_prefill.onnx | — | Download |
| onnx_kv/text_project.onnx | — | Download |
| onnx_kv/tokenizer12hz_decode.onnx | — | Download |
| onnx_kv/tokenizer12hz_encode.onnx | — | Download |
| onnx_kv_06b/code_predictor.onnx | — | Download |
Showing 10 of 19 .onnx files — see the full file list on the right.
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: apache-2.0 library_name: onnxruntime tags:
- text-to-speech
- tts
- onnx
- rust
- dll
- voice-clone
- voice-design
Qwen3-TTS DLL + ONNX (Minimal, Single-File ONNX)
This Hugging Face repository provides a minimal runtime bundle for Qwen3-TTS:
- Rust DLL for audio preprocessing + tokenizer (BPE)
- ONNX models (single
.onnxfiles with embedded weights) - Minimal tokenizer files (
config.json,vocab.json,merges.txt,tokenizer_config.json) - Python sample that runs the full pipeline using ONNX Runtime
Important: ONNX Runtime is not bundled. Install onnxruntime (CPU) or onnxruntime-gpu.
Directory Layout
dist/dll_release/
qwen3_tts_rust.dll
qwen3_tts.h
README_dll_release.txt
README.md
onnx_kv/ # 1.7B ONNX, embedded weights
onnx_kv_06b/ # 0.6B ONNX, embedded weights (optional)
models/
Qwen3-TTS-12Hz-1.7B-Base/
config.json
vocab.json
merges.txt
tokenizer_config.json
Qwen3-TTS-12Hz-0.6B-Base/
config.json
vocab.json
merges.txt
tokenizer_config.json
examples/python_dll_call/
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. Set DLL path
set QWEN3_TTS_DLL=.\qwen3_tts_rust.dll
3. Run (1.7B)
python examples\python_dll_call\run_pipeline.py ^
--onnx-dir .\onnx_kv ^
--model-dir .\models\Qwen3-TTS-12Hz-1.7B-Base ^
--ref-audio C:\path\to\ref.wav ^
--ref-text C:\path\to\ref.txt ^
--text "Hello world."
4. Run (0.6B)
python examples\python_dll_call\run_pipeline.py ^
--onnx-dir .\onnx_kv_06b ^
--model-dir .\models\Qwen3-TTS-12Hz-0.6B-Base ^
--ref-audio C:\path\to\ref.wav ^
--ref-text C:\path\to\ref.txt ^
--text "Hello world."
CPU / GPU switching
- Default: CUDA if available, otherwise CPU.
- Force CPU:
python examples\python_dll_call\run_pipeline.py --device cpu ...
Required Files
Required:
qwen3_tts_rust.dllonnx_kv/*.onnx(oronnx_kv_06b/*.onnx)models/<model>/{config.json,vocab.json,merges.txt,tokenizer_config.json}examples/python_dll_call/run_pipeline.py
Optional:
qwen3_tts.h(C/C++ bindings)onnx_kv_06b/(only for 0.6B)
Notes
- ONNX files are single-file (no
.onnx.data, noonnx__MatMul_*shards). - Samples are not included. Provide your own reference audio/text.
- First load can be slow due to large model size.
Troubleshooting
- DLL not found: set
QWEN3_TTS_DLLor run from this folder. - CUDAExecutionProvider not available: install
onnxruntime-gpuor use--device cpu. - InvalidArgument / input shape: ensure reference audio is mono. The script will resample.
License
Apache-2.0. This bundle is derived from Qwen3-TTS: https://github.com/QwenLM/Qwen3-TTS
Model info
Created: 2026-01-27
Updated: 2026-01-27
View on Hugging Face