Thorsten-Voice Piper: CC0 (German, male, medium)

A German Piper voice of Thorsten Müller, trained exclusively on my own Thorsten-Voice CC0 recordings. There is no lessac checkpoint or any other third-party model anywhere in its training history, so the model is released as CC0 as well. You can use it for any purpose, including commercial use, without attribution.

It is the successor to my previous Piper voice de_DE-thorsten-medium, which was fine-tuned from the lessac checkpoint and whose license situation for commercial use was therefore unclear.


Contents


Audio samples

Paragraph (text):

20 additional short test sentences are in samples/testsaetze/. The same paragraph and sentences, spoken by the base model and earlier training stages, are available in the Piper-Base repository.


Quick start

Download the model and its config. Both files must sit next to each other:

hf download Thorsten-Voice/Piper-Thorsten-CC0 \
  onnx/de_DE-thorsten_cc0-medium.onnx onnx/de_DE-thorsten_cc0-medium.onnx.json \
  --local-dir .

Command line (with Piper installed via pip install piper-tts):

echo "Hallo, ich bin die neue Thorsten-Stimme. Komplett unter CC0." | \
  python3 -m piper -m onnx/de_DE-thorsten_cc0-medium.onnx -f hallo.wav

Python:

import wave
from piper import PiperVoice

voice = PiperVoice.load("onnx/de_DE-thorsten_cc0-medium.onnx")
with wave.open("hallo.wav", "wb") as wav_file:
    voice.synthesize_wav("Guten Morgen! Wie geht es dir heute?", wav_file)

Home Assistant / other Piper integrations: use the .onnx and .onnx.json files like any other custom Piper voice. Copy both into the voice directory of your Piper installation.

Default inference settings (in the .onnx.json): noise_scale 0.667, length_scale 1.0, noise_w 0.8. Increase length_scale for slower speech, decrease it for faster speech.


Provenance

Every step uses only my own recordings, released as CC0:

1. Piper-Scratch         trained from scratch (random init, no lessac)
                         on Thorsten-Voice 2022.10, ~10 h, 1800 epochs
        │
        â–¼  warmstart
2. Piper-Base            Thorsten-Voice 2021.02 + 2022.10, ~32 h, 1000 epochs
                         → https://huggingface.co/Thorsten-Voice/Piper-Base
        │
        â–¼  warmstart (epoch 961)
3. This voice            fine-tuned on Thorsten-Voice 2022.10, ~9.7 h, 200 epochs

All training data: Thorsten-Voice/TV-44kHz-Full (CC0).


Files in this repository

Path Purpose
onnx/de_DE-thorsten_cc0-medium.onnx + .onnx.json The voice. Ready to use with Piper. Exported from epoch 133.
checkpoints/epoch=133-val_mel=0.3789.ckpt Training checkpoint of the published voice (best validation mel loss)
checkpoints/epoch=199-last.ckpt Final state after 200 epochs
config.json Piper config used for training
samples/ Paragraph and 20 test sentences
runs/ TensorBoard log of the fine-tuning (also in the Training metrics tab) and hparams.yaml

The .ckpt files contain generator and discriminator weights and are only needed if you want to continue training. See Further fine-tuning.


Comparison with the previous lessac-based voice

I compared this voice with my previous Piper voice de_DE-thorsten-medium (fine-tuned from lessac, same model size). Both were synthesized with identical inference settings, using the paragraph and 20 test sentences above.

Method: an informal A/B comparison with a single listener, me. For each of the 21 pairs, the order of the two models was randomized, and I didn't know which file was which until all pairs were rated.

Result:

  • Pronunciation and stress were almost identical, with only minimal differences.
  • Background noise and reverb: in all 21 pairs, the old lessac-based voice was the one I perceived as noisier or more reverberant. The new CC0 voice sounded cleaner every time.

This is one person's impression, not a formal listening study, so please judge for yourself with the samples. A likely reason for the cleaner sound is the data preparation: silence was trimmed and replaced with a short, truly silent padding, loudness was normalized, and problematic clips were removed (see Training details).


Training details

Data

  • Thorsten-Voice 2022.10-Neutral: 12,233 utterances, ~9.7 hours, single speaker, studio microphone (Rode Podcaster)
  • Preprocessing (identical to Piper-Base): silence trimming with 0.15 s padding, loudness normalization to −23 LUFS, peak limiting to −1 dBFS, resampling 44.1 kHz → 22.05 kHz (soxr VHQ). Removed: clips with comments in the dataset, durations outside 0.8–15 s, implausible characters per second, and clipping.

Training

Setting Value
Framework piper1-gpl (VITS), quality medium. Same code version as Piper-Base.
Sample rate 22,050 Hz
Initialization warmstart from Piper-Base, epoch 961 (784/784 parameters copied)
Epochs 200 (374 steps per epoch)
Batch size 32
Validation split 2 %
Learning rate annealed to 5 % of the initial value over 200 epochs
Hardware 1 × NVIDIA A40 (48 GB), ~3.5–4 min per epoch, ~13 hours total

Results

Metric Value
Best val_mel 0.3789 at epoch 133 (published voice)
val_vocoder_mel 0.370 (epoch 20) → ~0.353 (end)
val_mos (UTMOS estimate, noisy) ~3.2–3.3

The validation set consists only of 2022.10 recordings, so the numbers can't be compared directly with those of Piper-Base.


Further fine-tuning

The checkpoints can serve as a starting point for further fine-tuning. One example would be adapting the voice to a different speaking style. Because this voice is already very close to my 2022.10 recordings, it is especially suited for data recorded under similar conditions.

For a general step-by-step guide to fine-tuning Piper on CC0 data, see the Piper-Base README. Use --model.warmstart_ckpt with checkpoints/epoch=133-val_mel=0.3789.ckpt instead of the base checkpoint.


Limitations

  • German only, medium quality.
  • Phonemization errors come from espeak-ng, not from the model. Example: "Intendantin" is stressed incorrectly. These can be fixed with custom espeak-ng dictionary entries, without retraining.
  • Neutral speaking style only. No emotional or dialect variants (yet).

License

CC0 1.0 Universal. Model, checkpoints, configuration and samples are dedicated to the public domain. You may use them for any purpose, including commercial use, without attribution. Attribution is still always appreciated.

Credits

  • Voice, recordings, datasets and training: Thorsten Müller / Thorsten-Voice
  • Piper by Michael Hansen and the Open Home Foundation
Downloads last month
90
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Thorsten-Voice/Piper-Thorsten-CC0

Quantized
(1)
this model

Dataset used to train Thorsten-Voice/Piper-Thorsten-CC0