Spark-TTS: Efficient LLM-Based Text-to-Speech with Zero-Shot Voice Cloning

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Spark-TTS: Efficient LLM-Based Text-to-Speech with Zero-Shot Voice Cloning

Summary

Spark-TTS is an advanced text-to-speech system that leverages large language models (LLM) for highly accurate and natural-sounding voice synthesis. Built on Qwen2.5, it offers streamlined efficiency, high-quality zero-shot voice cloning, bilingual support for Chinese and English, and controllable speech generation, making it versatile for both research and production.

Repository Information

Analyzed by OSRepos on April 5, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Spark-TTS is an advanced text-to-speech (TTS) system developed by SparkAudio, designed for highly accurate and natural-sounding voice synthesis. This repository provides the official PyTorch inference code for the model, which leverages the power of large language models (LLM) to deliver efficient and flexible speech generation. Spark-TTS stands out by building entirely on Qwen2.5, simplifying the process by directly reconstructing audio from LLM-predicted codes, thus enhancing efficiency and reducing complexity.

Key features of Spark-TTS include:

  • Simplicity and Efficiency: Built entirely on Qwen2.5, Spark-TTS eliminates the need for additional generation models like flow matching. It directly reconstructs audio from LLM-predicted codes, streamlining the process and improving efficiency.
  • High-Quality Zero-Shot Voice Cloning: Supports zero-shot voice cloning, allowing it to replicate a speaker's voice without specific training data. This is ideal for cross-lingual and code-switching scenarios.
  • Bilingual Support: Seamlessly synthesizes speech in both Chinese and English, with capabilities for zero-shot voice cloning across languages.
  • Controllable Speech Generation: Enables the creation of virtual speakers by adjusting parameters such as gender, pitch, and speaking rate.

The project's paper, "Spark-TTS: An Efficient LLM-Based Text-to-Speech Model with Single-Stream Decoupled Speech Tokens", was recently published, highlighting its innovative approach.

Installation

Getting Spark-TTS up and running is straightforward. Follow these steps to set up the environment and download the necessary models.

1. Clone the Repository

git clone https://github.com/SparkAudio/Spark-TTS.git
cd Spark-TTS

2. Create Conda Environment and Install Dependencies

Ensure you have Conda installed. For installation instructions, refer to the Miniconda installation guide.

conda create -n sparktts -y python=3.12
conda activate sparktts
pip install -r requirements.txt
# For users in mainland China, you can use a mirror:
# pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com

For Windows installation, refer to the Windows Installation Guide.

3. Download Pre-trained Models

Via Python:

from huggingface_hub import snapshot_download

snapshot_download("SparkAudio/Spark-TTS-0.5B", local_dir="pretrained_models/Spark-TTS-0.5B")

Via Git LFS:

mkdir -p pretrained_models

# Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install

git clone https://huggingface.co/SparkAudio/Spark-TTS-0.5B pretrained_models/Spark-TTS-0.5B

Examples

Spark-TTS offers both command-line interface (CLI) and a user-friendly web interface for inference.

Basic CLI Usage

Run the provided demo script:

cd example
bash infer.sh

Or execute directly:

python -m cli.inference \
    --text "text to synthesis." \
    --device 0 \
    --save_dir "path/to/save/audio" \
    --model_dir pretrained_models/Spark-TTS-0.5B \
    --prompt_text "transcript of the prompt audio" \
    --prompt_speech_path "path/to/prompt_audio"

Web UI Usage

You can start the UI interface by running python webui.py --device 0, which allows you to perform Voice Cloning and Voice Creation. Voice Cloning supports uploading reference audio or directly recording the audio.

Demos

Experience the high-quality zero-shot voice cloning capabilities of Spark-TTS by visiting the official demo page. You can hear examples of various voices, including public figures and fictional characters, in both English and Chinese.

Why Use Spark-TTS

Spark-TTS represents a significant advancement in text-to-speech technology, offering a powerful and efficient solution for generating natural-sounding speech. Its LLM-based architecture, built on Qwen2.5, simplifies the synthesis pipeline while delivering exceptional results. With features like zero-shot voice cloning, comprehensive bilingual support, and fine-grained control over speech characteristics, Spark-TTS is an invaluable tool for researchers, developers, and anyone looking to integrate cutting-edge TTS capabilities into their projects. Whether for personalized speech synthesis, assistive technologies, or linguistic research, Spark-TTS provides a robust and versatile platform.

Links

Explore Spark-TTS further through these official resources:

Related repositories

Similar repositories that may be relevant next.

Grab: A Powerful Python Web Scraping Framework

Grab: A Powerful Python Web Scraping Framework

July 24, 2026

Grab is a robust Python web scraping framework designed to simplify complex data extraction tasks. It provides comprehensive tools for handling network requests, processing scraped content, and managing asynchronous operations through its powerful Spider component. Developers can leverage features like automatic cookie support, HTTP/SOCKS proxies, and XPath queries for efficient web data collection.

PythonWeb ScrapingFramework
Awesome Django: A Curated List of Essential Django Resources and Packages

Awesome Django: A Curated List of Essential Django Resources and Packages

July 24, 2026

Awesome Django is a comprehensive curated list of outstanding Django apps, projects, and resources. It focuses on mature, well-maintained packages with good documentation and active user bases. This repository serves as an invaluable guide for developers looking for high-quality tools and examples within the Django ecosystem.

DjangoAwesome ListPython
Awesome Django: A Curated List of Essential Resources for Developers

Awesome Django: A Curated List of Essential Resources for Developers

July 24, 2026

Awesome Django is a comprehensive, curated list of exceptional resources, packages, and tools for Django web development. It serves as an invaluable guide for developers looking to enhance their projects with the best the Django ecosystem has to offer. With over 11,000 stars, it's a trusted community-maintained collection.

awesomeawesome-listdjango
Awesome Flask: A Curated List of Flask Resources and Plugins

Awesome Flask: A Curated List of Flask Resources and Plugins

July 23, 2026

Awesome Flask is a comprehensive, curated list of exceptional Flask resources and plugins, designed to help developers build robust web applications. It categorizes a wide array of tools, from frameworks and authentication to database integrations and development utilities, making it an invaluable guide for anyone working with the Flask ecosystem.

FlaskPythonWeb Development

Source repository

Open the original repository on GitHub.

14 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️