Run this model with HF Jobs
Run moonbox-dev/IndexTTS-2.5-TensorRT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use moonbox-dev/IndexTTS-2.5-TensorRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use moonbox-dev/IndexTTS-2.5-TensorRT with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Model card and the original license
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657bilibili Model Use License Agreement
By clicking “I agree” to this bilibili Model Use License Agreement (“this Agreement”) , or by otherwise using any portion or element of the Model or any Derivative Work, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately. If you do not agree to this Agreement, you must immediately cease all use and permanently delete the Model and any Derivative Works.
1. Definitions1.1 “This Agreement”: means the bilibili Model Use License Agreement, including all of its terms and conditions.1.2 “We”, “us”, or “our”: means bilibili , the original right-holder of the Model.1.3 “You”: means any natural person or legal entity exercising rights granted by this Agreement and/or using the Model for any purpose and in any field of use.1.4 “Model”: means the artificial-intelligence model named “bilibili indextts2”, including but not limited to model weights and final code, in each case only to the extent that such components are published by us at https://github.com/index-tts/index-tts.1.5 “Derivative Work”: means any derivative of the Model, including without limitation: (i) any modification of the Model, model outputs, or their derivatives; (ii) any work based on the Model, model outputs, or their derivatives; (iii) any other machine learning model which is created by re-training, fine-tuning, quantizing, LoRA, parameter-efficient fine-tuning, or any other method involving incremental weights or merged checkpoints, in each case based on the Model, model outputs, or their derivatives.1.6 “Use”: means downloading, copying, training, modifying, creating Derivative Works, distributing, publishing, running, fine-tuning, publicly displaying, communicating to the public, or otherwise exploiting the Model or any Derivative Work.
2. Scope of License and Restrictions2.1 Subject to the terms and conditions of this Agreement, we grant you a worldwide, non-exclusive, non-transferable, royalty-free limited license to Use the Model or any Derivative Work based on the intellectual properties or other rights owned by Us embodied in the Model or any Derivative Work.2.2 If You intend to Use, or have already Used, the Model or any Derivative Work, and either (i) your or any of your Affiliates’ products or services had more than 100 million monthly active users in the immediately preceding calendar month, or (ii) your or any of your Affiliates’ annual revenue in the immediately preceding calendar year exceeded RMB 1 billion, You must request a separated license from us, which We may grant to You in our sole discretion. You are not authorized to exercise any of the rights under this Agreement unless and until We have expressly granted You such rights in writing.2.3 This Agreement is an open-source license for the Model in which we possess intellectual properties and other rights. It governs your Use of the Model only and does not limit any rights that we have regarding the Model.
3. Disclaimer and Risk Allocation3.1 The Model and any outputs generated thereby are provided “AS IS,” without warranty of any kind, express or implied, including but not limited to warranties of merchantability, fitness for a particular purpose, non-infringement, absence of errors or omissions, continuity, accuracy, reliability, or stability. You are solely responsible for determining the appropriateness of using or redistributing the Model and assume all risks associated with exercising any rights granted under this Agreement.3.2 You shall bear sole responsibility for any infringement, illegality, breach of contract, damages, fines, regulatory investigations, or other liabilities (including, without limitation, infringement of third-party patents, copyrights, trademarks, trade secrets, personality rights, data-protection rights, or any other rights) arising out of or related to your Use of the Model or any outputs generated thereby. We assume no joint, several, supplementary, or advance payment liability.3.3 Under no circumstances shall we be liable to you or any third party for any direct, indirect, incidental, special, punitive, or consequential damages (including, without limitation, loss of data, business interruption, or loss of profits) arising out of or related to the Use of the Model, even if we have been advised of the possibility of such damages.3.4 Additional Obligations for You and Downstream Recipientsa) You must ensure that any downstream recipient of the Model or any Derivative Work that you distribute complies with this Agreement, and you must impose appropriate contractual terms on such downstream recipients. If any downstream recipient breaches this Agreement, you shall be responsible for the consequences thereof.b) You must retain all original copyright notices and a copy of this Agreement in every copy of the Model or any Derivative Work that you Use.c) You may not Use the bilibili indextts2 or any Derivative Work to improve any AI model, except for the bilibili indextts2 itself, its Derivative Works,or non-commercial AI models.
4. Compliance Obligations4.1 Usage Restrictionsa) If you distribute a Derivative Work, you must clearly state in the distribution page or accompanying documentation: “Any modifications made to the original model in this Derivative Work are not endorsed, warranted, or guaranteed by the original right-holder of the original model, and the original right-holder disclaims all liability related to this Derivative Work.”b) If your Use of the Model or any Derivative Work incorporates any third-party data or weights, you must obtain all necessary authorizations on your own and bear full responsibility for compliance.c) You may not Use the Model or any Derivative Work for any purpose that violates the laws or regulatory requirements of the jurisdiction where the outputs and/or the Model are generated or used (including, without limitation, generating false information, discriminatory content, or content that infringes privacy).d) If the Model or any Derivative Work is capable of generating content, you must ensure that such content does not violate the laws or regulatory requirements of the applicable jurisdiction (including, without limitation, generating false information, discriminatory content, or content that infringes privacy).4.2 Prohibited High-Risk UseYou must ensure that the Model and any Derivative Work are not deployed, directly or indirectly, in high-risk scenarios such as medical diagnosis, autonomous driving, military applications, critical-infrastructure control, large-scale biometric surveillance, or automated decision-making (e.g., credit or employment evaluations). If you insist on such deployment, you must independently complete all compliance obligations under applicable laws and regulations (including but not limited to GDPR, CCPA, HIPAA, export-control laws, and AI-specific regulations), and we shall bear no liability for any consequences arising therefrom.4.3 Infringement LiabilityShould any third party raise claims against you with respect to any Derivative Work you develop or your Use of the Model or any Derivative Work, you shall bear full and independent responsibility for defending against and resolving such claims. If your actions cause us to incur any third-party claims, administrative penalties, or other losses, you shall indemnify us for all losses we thereby suffer, including but not limited to attorney fees, litigation costs, damages, and fines, and shall take all necessary measures to eliminate any adverse impact on us.
5. Reserved Rights5.1 We reserve the right to revoke the license granted to you under this Agreement in the event of your breach. Upon revocation, you must immediately cease all Use and permanently delete all copies of the Model and any Derivative Work. Sections 3 and 6 of this Agreement shall survive termination of this Agreement under this circumstance.5.2 Nothing in this Agreement grants you any right to use our trade names, trademarks, service marks, or product names, except as reasonably and customarily required to describe the origin of the Model or any Derivative Work—such as reproducing the content of a NOTICE file under Section 3.4 of this Agreement.5.3 If you or any of your Affiliates institutes or participates in any legal proceeding (including any cross-claim or counterclaim in a lawsuit) against us or any of our Affiliates, alleging that the Model or any output or any portion thereof infringes any intellectual property or other rights that you own or control, all licenses granted to you under this Agreement shall terminate automatically as of the date such proceeding is filed.
6. Governing Law and Dispute Resolution6.1 This Agreement shall be governed by and construed in accordance with the laws of the People’s Republic of China.6.2 In the event of any dispute arising out of or in connection with this Agreement, the parties shall first attempt to resolve such dispute through friendly negotiation. If negotiation fails, the dispute shall be submitted to the Shanghai Arbitration Commission for arbitration in accordance with its then-effective arbitration rules. The arbitration award shall be final and binding on both parties. The prevailing party shall be entitled to recover reasonable costs, including notarization and investigation fees, arbitration costs, attorneys’ fees, and travel expenses.
7. SeverabilityIf any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions shall remain in full force and effect. The invalid or unenforceable provision shall be replaced with a valid and enforceable provision that, to the maximum extent permitted by law, most closely reflects the original intent of the invalid or unenforceable provision.
8. Version UpdatesWe may release new versions of the AI Model Use License Agreement. Any new version will apply only to Uses occurring after the date of its release. If you obtained the Model under an earlier version, the new version will not have retroactive effect; nevertheless, you are encouraged to adopt the new version voluntarily.
9. Language VersionIn the event of any discrepancy or conflict between the English-language version set forth above and the Chinese-language version of this bilibili Model Use License Agreement, the Chinese-language version shall prevail for all purposes and shall govern the rights and obligations of the parties.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296---base_model: IndexTeam/IndexTTS-2.5base_model_relation: quantizedlicense: otherlicense_name: bilibili-model-use-licenselicense_link: LICENSEpipeline_tag: text-to-speechlibrary_name: tensorrttags:- tensorrt- moonbox- indextts- indextts2- text-to-speech- voice-cloning- zero-shot- chinese- english---
# IndexTTS 2.5 TensorRT
TensorRT engines of [IndexTTS 2.5](https://huggingface.co/IndexTeam/IndexTTS-2.5), made by Moonbox for NVIDIA RTX GPUs. Each precision is one folder holding theengine, `trt_runner.py` (a small numpy runner: TensorRT plus Polygraphy, no PyTorch) and a script that does the restof the pipeline. What the engine takes and returns is under *How to run*.
**Compatibility.** The engines are built *hardware compatible* (Ampere and newer: RTX 30, 40 and 50 series) and*version compatible* (any TensorRT 10.x from 10.13 on, through its lean runtime). That costs a little speed against anengine built for one GPU, but no rebuild is needed. Install the runtime with`pip install "tensorrt-cu12>=10.13,<11" "tensorrt-lean-cu12>=10.13,<11" polygraphy numpy`.
## Files
The last column is the benchmark (details under *How to run*).
| Precision | File | Size | sha256 | Benchmark ||---|---|---|---|---|| fp16 | [`fp16/campplus.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/campplus.engine) | 141.1 MB | `280752169674` | WER 0.45 % / CER 0.5 % (ONNX fp16 0.15 / 0.0), similarity 0.955 / 0.637 (0.956 / 0.630), DNSMOS 3.20 / 3.12 (3.13 / 3.11); RTF 0.65 (ONNX fp16 1.16) || fp16 | [`fp16/codec.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/codec.engine) | 121.8 MB | `4678285e3b22` | (the same build: numbers in its first row) || fp16 | [`fp16/decoder_0.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/decoder_0.engine) | 624.6 MB | `f26e98a3e7f5` | (the same build: numbers in its first row) || fp16 | [`fp16/decoder_1.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/decoder_1.engine) | 483.9 MB | `b940b21c57af` | (the same build: numbers in its first row) || fp16 | [`fp16/decoder_split.json`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/decoder_split.json) | 4.5 kB | `4b85ed54346c` | (the same build: numbers in its first row) || fp16 | [`fp16/device_chain.py`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/device_chain.py) | 8.3 kB | `e675d2e7e2d1` | (the same build: numbers in its first row) || fp16 | [`fp16/embed.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/embed.engine) | 70.0 MB | `ffb0392830f7` | (the same build: numbers in its first row) || fp16 | [`fp16/emovec.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/emovec.engine) | 390.5 MB | `9098af3fde2f` | (the same build: numbers in its first row) || fp16 | [`fp16/estimator.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/estimator.engine) | 447.3 MB | `e1378c96f7b4` | (the same build: numbers in its first row) || fp16 | [`fp16/estimator_long.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/estimator_long.engine) | 446.1 MB | `7bb62de8715d` | (the same build: numbers in its first row) || fp16 | [`fp16/pipeline.py`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/pipeline.py) | 23.9 kB | `018ab5b8adcf` | (the same build: numbers in its first row) || fp16 | [`fp16/pipeline_trt.py`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/pipeline_trt.py) | 6.6 kB | `916887236700` | (the same build: numbers in its first row) || fp16 | [`fp16/prefix.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/prefix.engine) | 201.7 MB | `ffed4ed1bdcd` | (the same build: numbers in its first row) || fp16 | [`fp16/regulator.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/regulator.engine) | 66.3 MB | `8f704a229ff3` | (the same build: numbers in its first row) || fp16 | [`fp16/semantic.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/semantic.engine) | 947.6 MB | `7cddb50666e8` | (the same build: numbers in its first row) || fp16 | [`fp16/tokenizer.json`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/tokenizer.json) | 36.1 kB | `ed8d69e9e670` | (the same build: numbers in its first row) || fp16 | [`fp16/tokenizer.tiktoken`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/tokenizer.tiktoken) | 0.9 MB | `747979631e81` | (the same build: numbers in its first row) || fp16 | [`fp16/trt_runner.py`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/trt_runner.py) | 4.4 kB | `cbc9abb1f59c` | (the same build: numbers in its first row) || fp16 | [`fp16/vocoder.engine`](https://huggingface.co/moonbox-dev/IndexTTS-2.5-TensorRT/blob/main/fp16/vocoder.engine) | 569.6 MB | `24d2fb18d0c2` | (the same build: numbers in its first row) |
## How to run
**Any modifications made to the original model in this Derivative Work are not endorsed, warranted, or guaranteed bythe original right-holder of the original model, and the original right-holder disclaims all liability related tothis Derivative Work.** These files are a Derivative Work of bilibili's IndexTTS-2.5 and are distributed under thebilibili Model Use License Agreement, copied in this repository as `LICENSE`. By using them you accept thatagreement, and its terms bind you as a downstream recipient (section 3.4a). In particular:
- If your or your affiliates' products or services had more than 100 million monthly active users in the preceding calendar month, or annual revenue above RMB 1 billion in the preceding calendar year, you need a separate license from bilibili before any use (section 2.2).- You may not use the model or any Derivative Work to improve any other AI model, except IndexTTS itself, its Derivative Works or non-commercial AI models (section 3.4c).- Keep the copyright notices and a copy of the agreement in every copy (section 3.4b). Do not deploy in the high-risk settings of section 4.2, and comply with section 4.1 and the publisher's DISCLAIMER: no synthesis of political or public figures or of anyone's voice without authorisation, and no fraud or impersonation.
IndexTTS-2.5 (IndexTeam / bilibili: zero-shot voice cloning from a few seconds of reference audio, Chinese, Englishand more, 22.05 kHz output) as TensorRT engines built from this model's fp16 ONNX graphs, plus `pipeline_trt.py`. Thepipeline is the ONNX build's `pipeline.py` (the official `IndexTTS2.infer_generator(spk_audio_prompt, text, lang,text_normalization=False)` at index-tts @d9e41aa: 3-beam sampling, 25 flow steps with CFG 0.7) with every graph runas engines.
```bashpython fp16/pipeline_trt.py "The quick brown fox jumps over the lazy dog." out.wav --ref voice.wav --lang en --seed 0```
```pythonimport sys, soundfile as sfsys.path.insert(0, "fp16")from pipeline_trt import IndexTTS25Trttts = IndexTTS25Trt("fp16")ref, sr = sf.read("voice.wav", dtype="float32")wav, out_sr = tts("Text to say.", ref, sr, "en", seed=0) # 22.05 kHz```
It needs numpy, tiktoken, soundfile, soxr, TensorRT 10.13 (`tensorrt-cu12` or `tensorrt-lean-cu12`) and Polygraphy.No PyTorch and no ONNX Runtime. The engines are version-compatible and built for Ampere or newer GPUs (RTX 30-seriesand up). They hold 4.5 GB, and the benchmark's process peaked at 9.7 GB of memory, GPU memory included. What the ONNXbuild leaves out is left out here too: the official text normalisation (pass written-out text), the Japanese andSpanish frontends, emotion control and the duration factor. Sampling uses numpy's generator, so a seed gives the samespeech every run here, not the same speech as PyTorch with that seed.
**The engines.** Together they compute the ONNX `fp16/` graphs, with the changes under *Precisions*.- `decoder_0..1.engine`: the 24-layer GPT-2 that writes the speech tokens: `inputs_embeds` [B, S, 1280], `beam_idx` [B], `past_key_values.{0..23}.key / .value` [B', 20, P, 64] (fp16) -> `logits` [B, 8194] and `present.*`. The cache is reordered for the beams inside the engine. `decoder_split.json` gives the order of the pieces and the tensors passed between them. The decoder is cut into pieces of at most 0.7 GB of weights, so that each engine builds within the build machine's memory.- `semantic`, `emovec`, `campplus`, `prefix`, `embed`, `codec`, `regulator.engine`: as the ONNX graphs of those names.- `estimator.engine` / `estimator_long.engine`: the s2mel diffusion transformer, for flows up to 2,048 mel frames and from 2,048 to 4,096. The long one is loaded only when a flow needs it: its attention keeps 3.5 GB of working memory.- `vocoder.engine`: BigVGAN, run in windows of 512 mel frames with 64 frames of context on each side, whose audio is dropped. Its output is local: on the CPU the windows give one whole pass's samples exactly. Built for whole utterances it needed 16 GB to build.
**Limits.** A text segment up to 160 ids (`pipeline.py` splits text at 120 tokens). Up to 800 speech tokens a segment(32 s), and a segment's flow (the reference's first 15 s plus the segment) up to 4,096 mel frames: a segment's speechtokens stop where its flow would pass that. With a 15 s reference that leaves about 32 s a segment; long text issplit into segments anyway.
**On the GPU.** The pipeline (`device_chain.py`) keeps the decoder's KV cache on the GPU: each step reads one set ofbuffers and writes the longer, reordered cache into the other, so a step allocates nothing. The activations betweenthe decoder's pieces never leave the GPU, and the pieces share one working-memory buffer.
**Precisions.** `fp16/` is strongly typed: every tensor keeps the precision the ONNX graph gives it (the flowestimator and the vocoder fp32, the rest fp16), with these changes:- every fp16 LayerNormalization and softmax is computed in fp32, as ONNX Runtime's kernels compute them;- the decoder's KV cache is fp16 at its inputs and outputs too (exact: the graph computes it in fp16);- `regulator.engine` is built weakly typed: built strongly typed, its fp16 engine faults on odd lengths (CUDA error 716) in TensorRT 10.13.
No int8: TensorRT's int8 needs calibrated activations, and the ONNX `int4/` build is weight-only `MatMulNBits`,which TensorRT doesn't take.
Each engine was checked against its ONNX graph on one clip's real inputs (signal-to-noise ratio of the outputs):- the decoder, teacher-forced over 30 beam steps: 51-53 dB, the same top token on every step;- the other engines: 45-77 dB.- The vocoder: 84 dB from ONNX Runtime on the CPU. ONNX Runtime's CUDA vocoder is 14.7 dB from its own CPU result, so the engine is closer to the graph than the CUDA run is.
**Benchmark.**- **Setup:** the ONNX build's benchmark. The lab's TTS set: 6 English sentences cloned from a LibriSpeech test-clean prompt and 4 Chinese sentences from an AISHELL-1 prompt, each with seeds 0-7 (80 clips per build), the original's sampling. RTX 3080 Laptop GPU, whole pipeline.- **Score:** sampled speech can't be compared sample by sample, so each build is judged as the original is. Whisper large-v3-turbo's WER (English) or CER (Chinese) against the text, WavLM-base-plus-sv speaker similarity to the prompt, and DNSMOS (P.835 overall). Real-time factor is processing time / audio time.- **Pass mark** (set before the first run): against the ONNX fp16 build, per language, error rate at most 2 points higher, similarity at most 0.03 lower, DNSMOS at most 0.2 lower.
| | English WER | similarity | DNSMOS | Chinese CER | similarity | DNSMOS | Real-time factor ||---|---|---|---|---|---|---|---|| ONNX `fp16/` (ONNX Runtime CUDA) | 0.15 % | 0.956 | 3.13 | 0.0 % | 0.630 | 3.11 | 1.16 || TensorRT `fp16/` | 0.45 % | 0.955 | 3.20 | 0.5 % | 0.637 | 3.12 | 0.65 |
The original (PyTorch fp32) scores 0.3 % / 0.963 / 3.13 and 0.0 % / 0.652 / 3.04 on the same set. The engines loadon first use, so the first clip's time includes the loading.
## How these were made
From [IndexTTS 2.5](https://huggingface.co/IndexTeam/IndexTTS-2.5) at revision `c39ce5ba98`: each engine was built with TensorRT's builder from Moonbox's publishedONNX graph of the same model and precision. The network is *strongly typed*: every tensor keeps the precision theONNX graph gives it, so an fp16 engine computes what the fp16 ONNX build computes. Built on an RTX 3080 Laptop GPU,it was benchmarked against the original before upload, and the `sha256` column above is what the files must hash to.
## License
other (bilibili custom license). These files are a derivative of the original model and carry its license: it is copied in thisrepository, and it governs your use of these files. The original model card follows unchanged.
---
# Original model card
# IndexTTS-2.5
IndexTTS-2.5 is a zero-shot text-to-speech model that clones a voice from a singlereference audio clip. It supports **Chinese, English, Japanese, Spanish and Arabic**,with cross-lingual voice transfer and emotion control disentangled from timbre.
Compared with IndexTTS-2, it adds Japanese, Spanish and Arabic, infers faster, addsspeaking speed control, and improves controllability of Chinese Pinyin, English CMUphonemes and Japanese Kana.
## Model Details
- **Developed by:** IndexTeam, Bilibili- **Model type:** Autoregressive zero-shot TTS — GPT backbone, flow-matching speech-to-mel decoder, BigVGAN vocoder- **Parameters:** ~0.8B (GPT backbone)- **Languages:** Chinese, English, Japanese, Spanish, Arabic- **Output:** 22.05 kHz waveform- **License:** [bilibili Model Use License Agreement](LICENSE)- **Repository:** [github.com/index-tts/index-tts](https://github.com/index-tts/index-tts)- **Paper:** [arXiv:2601.03888](https://arxiv.org/abs/2601.03888)
## Getting Started
Requires Python 3.10–3.11, an NVIDIA GPU, and roughly 6 GB of VRAM for inference.
### Install
```bashgit clone https://github.com/index-tts/index-tts.git && cd index-ttspip install -U uvuv sync --all-extras```
### Download the weights
```bash# HuggingFaceuv tool install "huggingface-hub"hf download IndexTeam/IndexTTS-2.5 --local-dir=checkpoints
# or ModelScopeuv tool install "modelscope"modelscope download --model IndexTeam/IndexTTS-2.5 --local_dir checkpoints```
Auxiliary models (w2v-bert-2.0, MaskGCT semantic codec, CAMPPlus, BigVGAN) are notpart of this repository; they are downloaded into `checkpoints/hf_cache/` on first run.
### Inference
```pythonfrom indextts.infer_v2_5 import IndexTTS2
tts = IndexTTS2(cfg_path="checkpoints/config.yaml", model_dir="checkpoints", use_bf16=True)
# Voice cloningtts.infer( spk_audio_prompt="prompt.wav", text="Hello, this is a voice cloning demo.", lang="EN", output_path="output.wav",)
# Emotion control with an 8-float vector, in the order# [happy, angry, sad, afraid, disgusted, melancholic, surprised, calm]tts.infer( spk_audio_prompt="prompt.wav", text="快躲起来!是他要来了!", lang="ZH", output_path="output.wav", emo_vector=[0, 0, 0.8, 0, 0, 0, 0, 0],)
# Pronunciation control: Pinyin, CMU phonemes, or Kana in <word|reading> formtts.infer( spk_audio_prompt="prompt.wav", text="他在银<行|XING2>里<行|HANG2>走了半天。", lang="ZH", output_path="output.wav",)
# Speaking speed: >1.0 slows down, <1.0 speeds up (valid range 0.5–2.0)tts.infer( spk_audio_prompt="prompt.wav", text="大家好,欢迎来到IndexTTS。", lang="ZH", output_path="output.wav", duration_factor=1.2,)```
### Web UI
```bashuv run webui.py```
## Limitations
- Long text is split into segments and the pieces are concatenated with a short silence, so prosody is not modelled across a segment boundary.- Emotion control from a text description needs the QwenEmotion model, which is loaded only when IndexTTS2 is constructed with `use_qwen_emo=True`. Passing `use_emo_text=True` without it raises at inference time.- Enabling random sampling for emotion (`use_random=True`) reduces voice cloning fidelity.- The model does not verify that the speaker in a reference clip consented to being cloned. Obtaining that consent is the user's responsibility, and all use is subject to the license terms.
## Citation
```bibtex@misc{li2026indextts25technicalreport, title={IndexTTS 2.5 Technical Report}, author={Yunpei Li and Xun Zhou and Jinchao Wang and Lu Wang and Yong Wu and Siyi Zhou and Yiquan Zhou and Yining Wang and Yaogen Yang and Zhetao Hu and Shiyao Duan and Jiacheng Xu and Bin Xia and Jingchen Shu}, year={2026}, eprint={2601.03888}, archivePrefix={arXiv}, primaryClass={cs.SD}, url={https://arxiv.org/abs/2601.03888},}```LICENSEAdded+57
README.mdAdded+296