LibreAI / Audio / vits
// audio · jaywalnut310/vits

vits

VITS — the original end-to-end text-to-speech model: a conditional VAE with adversarial learning, in PyTorch.

★ 7.9k stars⑂ 1.4k forksMITupdated 2023-12
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

vits is an open-source audio project by jaywalnut310 (jaywalnut310/vits on GitHub). It has 7,893 GitHub stars and 1,378 forks, is released under the MIT license, and was last updated on GitHub on 6 December 2023.

GitHub stars
7,893
Forks
1,378
License
MIT
Last updated on GitHub
6 December 2023
Category
Audio
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide whether you will train on LJ Speech, multi-speaker VCTK, or your own dataset (which needs the preprocessing/g2p step first).

  2. Get the project

    Clone jaywalnut310/vits from GitHub (or use the install path in the run steps below) and skim its README for the parts relevant to your goal.

  3. Install and configure

    Clone the repo, install its Python requirements, and build the Cython monotonic alignment search extension as the README's prerequisites describe.

  4. Run your first task

    Run the provided inference example with a pretrained setup to hear output, then start a short training run on one dataset.

// features

Why people love it

End-to-end TTS

A single conditional VAE with adversarial learning generates speech from text end to end, the approach the VITS paper introduced.

Monotonic alignment search

Includes the alignment search component (with a Cython build) that aligns text and speech during training.

Single and multi-speaker

Training examples cover LJ Speech (single speaker) and VCTK (multi-speaker with speaker IDs).

Preprocessing included

A preprocess script converts your file lists to phonemes (g2p), with pre-processed phonemes already provided for LJ Speech and VCTK.

Training and inference examples

The README provides concrete training commands per dataset and an inference example to synthesise speech.

PyTorch reference code

The canonical implementation researchers cite and fork as the base for later TTS work.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source from the official GitHub repository for vits.

    git clone https://github.com/jaywalnut310/vits.git
    cd vits
  2. Build alignment search

    After cloning and installing requirements, build the Cython monotonic alignment search per the README prerequisites.

    # cd monotonic_align && python setup.py build_ext --inplace — see README pre-requisites
  3. Preprocess and train

    Preprocess your file lists, then run the training example for your dataset (LJ Speech or VCTK) from the README.

    python preprocess.py --text_index 1 --filelists filelists/ljs_audio_text_train_filelist.txt  # then run the dataset's training example — see README
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains vits?

jaywalnut310 and co-authors, through the jaywalnut310/vits repository, with an online demo page linked from the repo.

Is vits free to use?

Yes — the project is open source under the MIT license as recorded for this listing. You can use, modify and distribute it under the MIT terms.

Does vits need a paid API key?

No API key or paid service is involved — it is local PyTorch training and inference; you need a GPU and training data for good results.

How does VITS compare to a hosted TTS API?

A hosted API gives instant voices with no training, billed per character. VITS gives you the model itself to train on your own data and run locally — full control and no per-use fees, but you do the training work.

How do I get started with vits?

Clone the repository (or use the documented installer), follow the install and configure steps on this page, and run the smallest real task first — run the provided inference example with a pretrained setup to hear output, then start a short training run on one dataset.

// keep exploring

Similar tools

Audio

PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text…

★ 12.7k starsApache-2.0
View guide →
Audio

StyleTTS2

Human-level text-to-speech through style diffusion and adversarial training with speech language models.

★ 6.4k starsMIT
View guide →
Audio

metavoice-src

MetaVoice-1B: a 1.2B-parameter foundation model for emotional, zero-shot text-to-speech

★ 4.2k starsApache-2.0
View guide →
Audio

ChatTTS

A generative speech model built for daily dialogue — natural, conversational text-to-speech

★ 39.9k starsAGPL-3.0
View guide →
Audio

bark

Suno's text-prompted generative audio model: speech, music and sound effects from text prompts

★ 39.3k starsMIT
View guide →
Audio

Mozilla TTS

Mozilla's deep-learning text-to-speech library with Tacotron, Glow-TTS and neural vocoders.

★ 10.2k starsMPL-2.0
View guide →
// alternatives

Alternatives in Audio

The most-starred other Audio projects in the LibreAI catalogue — the realistic shortlist if vits is not the right fit.

Get vits

Free and open — grab the source, star the repo, and start creating.