LibreAI / AI Music / DiffSinger
// ai-music · MoonInTheRiver/DiffSinger

DiffSinger

Official DiffSinger code: diffusion-based singing voice synthesis and text-to-speech (AAAI 2022)

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

Project facts

DiffSinger is an open-source ai music project by MoonInTheRiver (MoonInTheRiver/DiffSinger on GitHub). It has 4,875 GitHub stars and 830 forks, is released under the MIT license, and was last updated on GitHub on 24 July 2026.

GitHub stars
4,875
Forks
830
License
MIT
Last updated on GitHub
24 July 2026
Category
AI Music
Listing
Full install guide
// how it works

How it works

  1. Choose SVS or TTS

    Decide whether you want singing synthesis (lyrics + F0 or MIDI input) or the DiffSpeech text-to-speech variant.

  2. Clone and set up the environment

    Clone the repo and create the documented Conda or venv environment for your GPU/CUDA version.

  3. Install dependencies

    Install the requirements file matching your hardware, as listed in the README.

  4. Run inference

    Download a checkpoint, follow the SVS or TTS document, and synthesize your first utterance or song line.

// features

Why people love it

Shallow diffusion mechanism

The paper's core contribution: diffusion applied at a shallow stage for faster, high-quality mel-spectrogram generation.

Singing voice synthesis

Generate singing from lyrics with ground-truth F0, or from lyrics + MIDI with explicit F0 prediction, on PopCS/OpenCpop pipelines.

DiffSpeech TTS included

A text-to-speech variant in the same framework, trained on LJSpeech with a HiFiGAN vocoder.

PNDM acceleration plug-in

Optional DiffSinger-PN adds the PNDM sampler to speed up diffusion sampling.

Multiple vocoders

NSF-HiFiGAN for singing pipelines and HiFiGAN for TTS, per the README's pipeline table.

Training and inference code

Full official code with documented SVS/TTS run guides and TensorBoard logging, not just a demo.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone the project and enter its directory.

    git clone https://github.com/MoonInTheRiver/DiffSinger.git
    cd DiffSinger
  2. Create the environment

    Create and activate a Python 3.8 Conda environment as documented.

    conda create -n your_env_name python=3.8
    conda activate your_env_name
  3. Install requirements for your GPU

    Pick the requirements file matching your GPU/CUDA (2080Ti/CUDA 10.2 or 3090/CUDA 11.4 examples in the README), then follow the SVS/TTS docs to run inference.

    pip install -r requirements_3090.txt  # or requirements_2080.txt — see README
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains DiffSinger?

It is the authors' official repository (MoonInTheRiver), with later maintenance help noted from Team Openvpi; the paper appeared at AAAI 2022.

Is DiffSinger free?

Yes, the code is MIT-licensed. Pretrained checkpoints and datasets (PopCS, OpenCpop, LJSpeech) have their own terms — check each before commercial use.

Does it need a paid API key?

No. Everything runs locally on your own GPU; there is no hosted API involved.

How does it compare to later tools like OpenVPI's DiffSinger fork?

This is the original research implementation the community forks build on; forks such as OpenVPI's add newer editors and workflows, while this repo remains the reference for the paper's method.

How do I get started?

Clone the repo, create the Python 3.8 environment from the README, install the requirements file for your GPU, then follow the linked 'Run DiffSinger (SVS)' or 'Run DiffSpeech (TTS)' document.

// keep exploring

Similar tools

AI Music

instruct-MusicGen

Research code for instruction-based text-to-music editing of music models.

★ 111 starsApache-2.0
View guide →
AI Music

Moodify-Emotion-Music-App

Emotion-aware music recommender that reads text, speech, and faces.

★ 82 starsMIT
View guide →
AI Music

openai_tts

Text-to-speech for Home Assistant from OpenAI, Mistral, Groq, Lemonfox, Kokoro, Chatterbox or any server that implements the OpenAI speech API, with announce…

★ 219 starsGPL-3.0
View guide →
AI Music

qvac

Open-source local AI SDK - run AI on-device with no cloud, no API keys. Supports GGUF, RAG, image, music, and video generation, speech-to-text, P2P inference…

★ 664 starsApache-2.0
View guide →
AI Music

UltraSinger

AI based tool to convert vocals lyrics and pitch from music to autogenerate Ultrastar Deluxe, Midi and notes. It automatic tapping, adding text, pitch vocals…

★ 546 starsMIT
View guide →
AI Music

voirs

Rust voice framework: TTS, recognition, and sound in one fast stack.

★ 46 starsCustom
View guide →
// alternatives

Alternatives in AI Music

The most-starred other AI Music projects in the LibreAI catalogue — the realistic shortlist if DiffSinger is not the right fit.

Get DiffSinger

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