Instructions to use zealerx/IndexTTS-2-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use zealerx/IndexTTS-2-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download zealerx/IndexTTS-2-mlx --local-dir IndexTTS-2-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
IndexTTS 2 for MLX
Zero-shot text-to-speech with emotion control: IndexTTS 2 by bilibili, every network converted to MLX (float32, as released).
Converted from IndexTeam/IndexTTS-2 with speech-mlx. Runs without PyTorch.
Use
pip install "speech-mlx[indextts,dots] @ git+https://github.com/xiaozealer/speech-mlx"
from speech_mlx.indextts import IndexTTS
tts = IndexTTS.from_pretrained("zealerx/IndexTTS-2-mlx")
tts.speak("你好,欢迎收听。", "speaker.wav", "out.wav", emo_vector=[0, 0, 0, 0, 0, 0, 0.6, 0], seed=0)
Parity with the original
Speech codes identical to the official PyTorch model on the same clips; with the same decoder noise the waveform is 78-87 dB below the signal. 1.41x vs 0.70x real time on 17 directed lines (M3 Max).
Details: docs/PARITY.md.
Licence
This is a Derivative Work of IndexTTS under the bilibili Model Use License Agreement, included here as the licence file. Use of these weights is subject to that agreement, including its use restrictions.
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.
Quantized
Model tree for zealerx/IndexTTS-2-mlx
Base model
IndexTeam/IndexTTS-2