SparkTTS / README.md
spark-tts
Update README
3571fd6
|
raw
history blame
5.13 kB

Spark-TTS

Official PyTorch code for inference of
Spark-TTS: An Efficient LLM-Based Text-to-Speech Model with Single-Stream Decoupled Speech Tokens

Spark-TTS Logo

version version version python mit

Spark-TTS 🔥

Overview

Spark-TTS is an advanced text-to-speech system that uses the power of large language models (LLM) for highly accurate and natural-sounding voice synthesis. It is designed to be efficient, flexible, and powerful for both research and production use.

Key Features

  • Simplicity and Efficiency: Built entirely on Qwen2.5, Spark-TTS eliminates the need for additional generation models like flow matching. Instead of relying on separate models to generate acoustic features, it directly reconstructs audio from the code predicted by the LLM. This approach streamlines the process, improving efficiency and reducing complexity.
  • High-Quality Voice Cloning: Supports zero-shot voice cloning, which means it can replicate a speaker's voice even without specific training data for that voice. This is ideal for cross-lingual and code-switching scenarios, allowing for seamless transitions between languages and voices without requiring separate training for each one.
  • Bilingual Support: Supports both Chinese and English, and is capable of zero-shot voice cloning for cross-lingual and code-switching scenarios, enabling the model to synthesize speech in multiple languages with high naturalness and accuracy.

Install

Clone and Install

  • Clone the repo
git clone https://github.com/SparkAudio/Spark-TTS.git
cd Spark-TTS
conda create -n sparktts -y python=3.12
conda activate sparktts
pip install -r requirements.txt
# If you are in mainland China, you can set the mirror as follows:
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com

Model Download

TBD

Basic Usage

You can simply run the demo with the following commands:

cd example
bash infer.sh

Demos

Here are some demos generated by Spark-TTS using zero-shot voice cloning. For more demos, visit our demo page.


Donald Trump

Zhongli (Genshin Impact)

Donald Trump

Zhongli


陈鲁豫 Chen Luyu

杨澜 Yang Lan

陈鲁豫Chen_Luyu.webm

Yang_Lan.webm


余承东 Richard Yu

马云 Jack Ma

Yu_Chengdong.webm

Ma_Yun.webm


刘德华 Liu Dehua

徐志胜 Xu Zhisheng

Liu_Dehua.webm

Xu_Zhisheng.webm


哪吒 Nezha

李靖 Li Jing

Ne_Zha.webm

Li_Jing.webm