← Back to guides

Installing Thorsten-Voice with Coqui TTS

Two proven models of my voice (VITS and Tacotron2-DDC), installable as a Python package. Runs without a graphics card on Windows, Mac and Linux – and thanks to the training data, it can also be used commercially without restrictions.

Suitable for commercial projects

I trained the Coqui models exclusively on my own voice recordings. They contain no other voices and no data under restrictive licenses. This makes them suitable for products, apps and commercial applications as well.

Training data
Exclusively my own voice recordings, released under CC0 (public domain). More about the recordings →
Models
Apache 2.0 (as listed in the Coqui model catalogue) – explicitly permits commercial use.
Software
Coqui TTS is licensed under the Mozilla Public License 2.0 (MPL 2.0).

Note: espeak-ng, which is only needed for the Tacotron2-DDC model, is licensed under GPL-3.0. If you plan to distribute or sell an application, check what that means for you – or simply use the VITS model, which works without espeak-ng. This is not legal advice.

1

Check your Python version

Coqui TTS requires Python 3.10 or newer. This command shows which version is installed:

python3 --version

On Windows, the command is usually python instead of python3.

2

Create a virtual environment

Recommended, so that Coqui TTS does not interfere with other Python projects on your computer.

python3 -m venv thorsten-coqui
source thorsten-coqui/bin/activate

Windows: python -m venv thorsten-coqui followed by thorsten-coqui\Scripts\activate

3

Install Coqui TTS

The original Coqui project is no longer maintained since Coqui AI shut down. I therefore recommend the actively developed community fork by Idiap. The extras in square brackets matter: “cpu” pulls in PyTorch (nothing works without it), “codec” handles reading and writing audio files, “languages” adds the pronunciation rules for the VITS model and “server” the web interface.

pip install "coqui-tts[cpu,codec,languages,server]"
Fork on GitHub ↗

With an NVIDIA graphics card, use “cuda” instead of “cpu”. The download is fairly large (PyTorch) and may take a few minutes. “codec” requires FFmpeg to be installed (macOS: brew install ffmpeg, Debian/Ubuntu: sudo apt install ffmpeg).

4

Install espeak-ng (Tacotron2-DDC only)

The Tacotron2-DDC model uses espeak-ng for pronunciation. If you only want to use the VITS model, you can skip this step.

# Debian / Ubuntu / Raspberry Pi OS
sudo apt install espeak-ng

# macOS (Homebrew)
brew install espeak-ng
espeak-ng releases ↗

Windows: download and run the installer (.msi) from the espeak-ng GitHub releases page, then reopen your terminal.

Both models are called via the tts command. The text goes in quotes, and the result is saved as a WAV file in the current folder. The models speak German, so the input text should be German too.

Thorsten VITS

VITS

Trained on my Thorsten-22.05-neutral dataset. Works without espeak-ng. Download on first use: about 300 MB.

tts --model_name tts_models/de/thorsten/vits \
    --text "Hallo, ich bin Thorsten. Schön, dass du da bist." \
    --out_path output.wav

Thorsten Tacotron2-DDC

Tacotron2-DDC

Tacotron2 DDC with HifiGAN vocoder, trained on my Thorsten-Dec2021 dataset. Sounds slightly more natural than VITS. Requires espeak-ng. Download on first use: about 500 MB plus vocoder.

tts --model_name tts_models/de/thorsten/tacotron2-DDC \
    --text "Hallo, ich bin Thorsten. Schön, dass du da bist." \
    --out_path output.wav

Web interface in your browser

Starts a small local web server. Then open http://localhost:5002 in your browser, type some text and listen.

tts-server --model_name tts_models/de/thorsten/vits

Use an NVIDIA graphics card

Everything works on the CPU, but longer texts take noticeably longer. If you installed Coqui with the “cuda” extra instead of “cpu”, the GPU takes over:

tts --model_name tts_models/de/thorsten/vits \
    --text "Jetzt mit Grafikkarte." \
    --out_path output.wav --device cuda
Older guides say “pip install TTS” – what is the difference? ⌄

TTS is the original package, which is no longer maintained and only installs up to Python 3.11. coqui-tts is the community fork with support for current Python versions. Both packages use the same internal name, so never install both at the same time – remove an old installation first with pip uninstall TTS.

Error saying espeak or espeak-ng cannot be found ⌄

This affects the Tacotron2-DDC model. Install espeak-ng as described in step 4 and reopen your terminal. Alternatively, use the VITS model, which does not need espeak-ng.

Error mentioning “gruut” with the VITS model ⌄

The VITS model uses gruut for German pronunciation. gruut comes with the “languages” extra – simply run pip install "coqui-tts[languages]" inside the active virtual environment.

Does it run fully offline after installation? ⌄

Yes. On first use, Coqui downloads the model once and stores it in your user directory (on Linux, e.g. ~/.local/share/tts). After that, no internet connection is needed.

Error “Coqui TTS requires the PyTorch and Torchaudio libraries” ⌄

PyTorch is not installed automatically, only via an extra. Inside the active virtual environment, run pip install "coqui-tts[cpu,codec,languages,server]" (with an NVIDIA graphics card, use “cuda” instead of “cpu”).

Error “the torchcodec library is required for audio IO” ⌄

Since PyTorch 2.9, Coqui needs the torchcodec package for audio files. Inside the active virtual environment, run pip install "coqui-tts[codec]". If you then get an error about FFmpeg, install FFmpeg (macOS: brew install ffmpeg, Debian/Ubuntu: sudo apt install ffmpeg).

“tts: command not found” ⌄

Usually the virtual environment is not active, for example in a new terminal window. Run source thorsten-coqui/bin/activate again (Windows: thorsten-coqui\Scripts\activate).

Prefer a different variant?

For very low-powered hardware (e.g. Raspberry Pi), Piper is the lighter choice. Kokoro runs smoothly on regular computers, and CosyVoice sounds most natural with a GPU.

View all guides