indextts-onnx
IndexTTS2 voice cloning via ONNX Runtime. No PyTorch at inference time.
Models are automatically downloaded from HuggingFace on first use.
One-liner
uvx indextts-onnx --ref-audio reference.wav --text "你好,欢迎使用语音克隆系统。" --output output.wav
Python API
from indextts_onnx import IndexTTSInfer
tts = IndexTTSInfer("~/.cache/indextts-onnx/models")
tts.infer("reference.wav", "你好,欢迎使用语音克隆系统。", "output.wav")
Install
pip install indextts-onnx
CLI
indextts-onnx --ref-audio ref.wav --text "Your text" --output out.wav
Options:
--model-dir: Custom model directory (default: auto-download to~/.cache/indextts-onnx/models)--threads: CPU threads (default: auto)
Architecture
IndexTTS2 inference involves 10 ONNX models. This package runs them with ONNX Runtime + numpy, eliminating the PyTorch runtime dependency (~3.3GB total):
| Model | Format | Size | Purpose |
|---|---|---|---|
| wav2vec2bert | int8 | 396M | Semantic feature extraction |
| semantic_codec | int8 | 22M | Quantize semantic embeddings |
| campplus | int8 | 8M | Speaker style embedding |
| gpt2_init | int8 | 837M | First autoregressive step |
| gpt2_step | int8 | 476M | Per-token generation step |
| gpt2_forward | int8 | 826M | Forward pass for latent |
| s2mel_ref | int8 | 4M | Reference length regulation |
| s2mel_gen | int8 | 4M | Generation preprocessing |
| dit_step | fp32 | 363M | DiT flow matching step |
| bigvgan | fp32 | 429M | Neural vocoder |
GPT2 models use int8 quantization (3x faster). DiT and BigVGAN stay fp32 (int8 degrades quality for flow matching).
License
MIT
Metadata
Release files for indextts-onnx 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| indextts_onnx-0.3.0.tar.gz | 23.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| indextts_onnx-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.0 kB
Release files / indextts_onnx-0.3.0.tar.gz
| Download URL | indextts_onnx-0.3.0.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
149bf141828e9f718ecd0f62e6367b05e6d0515cf83c7243adbbd6d82aff69c5
|
|
BLAKE2b-256 checksum How to use checksums |
210613c19175d47bbb251bb224468ecbebcd4cb76fa1e843d7bb7918c6bdecd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / indextts_onnx-0.3.0-py3-none-any.whl
| Download URL | indextts_onnx-0.3.0-py3-none-any.whl |
|---|---|
| Size | 28.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e22a2aac5fd1d95aa1135249a34ac2865d986cacbbf300f4d40b114b15d00922
|
|
BLAKE2b-256 checksum How to use checksums |
286b05334bbb0fa55aa46831290324d76bd3aa34ed68b26e6fbe40e98a9f312e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for indextts-onnx 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.