Guides

How to train your own TTS voice on licensed recordings

Owning your voice means two things: a model you can run yourself, and recordings you have the rights to train on. This guide walks through the pipeline and the open-source models developers use most, with the licensing details that decide whether you can ship.

By the Foní team · Published

1. Start from rights, not from audio

Before you pick a model, confirm two licenses: the license for your recordings (does it explicitly allow training a model and commercially using its synthetic output?) and the license of any pretrained weights you fine-tune from. Code licenses and weight licenses are often different. A permissive code license does not make the published checkpoint commercially usable.

2. Prepare the recordings

  • Record clean, consistent audio. One speaker per voice, the same microphone and room across sessions, no music or background noise.
  • Segment into utterances. Most TTS recipes expect short clips, typically a few seconds to around 15 seconds each, with a matching transcript.
  • Normalize the text. Write numbers, dates, currencies and abbreviations the way they are spoken in the target accent. This is where accent-specific errors start.
  • Cover what your product says. Include short phrases, numbers and the product vocabulary your agent will use, not only long read sentences.
  • Match the sample rate to the model you fine-tune (for example 22,050 Hz for Piper, 24 kHz for XTTS-v2).

3. Pick a model

ModelCode licensePretrained weightsNotes for fine-tuning
PiperGPL-3.0 (piper1-gpl)Voice checkpoints published per dataset; check each voice's model cardFast, runs on CPU and small devices. The training guide recommends fine-tuning from an existing medium-quality checkpoint, even one in another language, at 22,050 Hz.
StyleTTS 2MIT (repo)LibriTTS checkpoint comes with a condition: tell listeners the speech is synthesized unless you have permission to use the voiceShips a fine-tuning config (config_ft.yml). The authors' example fine-tunes on about 1 hour of LJSpeech for 50 epochs.
F5-TTSMIT (repo)Pretrained models are CC-BY-NC because of the Emilia training dataThe maintainers say a model fine-tuned from the Emilia-trained base cannot be used commercially (discussion #997). Training from scratch on data you have commercial rights to avoids that.
XTTS-v2Coqui code (now community-maintained)Coqui Public Model License, non-commercialSupports 17 languages and voice cloning from a 6-second clip (model card). The license states that using the model to train other models for commercial use is not a non-commercial purpose.

For a commercial product, the safest pattern is: permissively licensed code, weights you are allowed to use commercially (or a model trained from scratch), and recordings licensed to you for training.

4. Fine-tune

  1. Put clips and transcripts in the format the recipe expects (Piper and StyleTTS 2 use LJSpeech-style metadata files).
  2. Start from a checkpoint you are allowed to use. Fine-tuning converges far faster than training from scratch.
  3. Train, and listen to checkpoints along the way, not just the loss curve.
  4. Export for your runtime (Piper exports ONNX for fast local inference).

5. Evaluate with native listeners

Automatic metrics will not tell you that a Monterrey voice sounds like it is from Madrid. Have native speakers of the target accent rate accent fit, naturalness and pronunciation of numbers and names on scripts that look like real conversations. Fix problems in the data and text normalization first; they are usually the cause.

Where Foní fits

Foní supplies the piece most teams cannot get from open datasets: native recordings in the exact accent you need, licensed to you in writing for training, and reviewed by native accent experts. See the developer overview or browse accents.

Sources

  1. Piper repository, OHF-Voice/piper1-gpl (GitHub)
  2. Piper training guide (TRAINING.md)
  3. Piper issue #68: how much data to fine-tune
  4. StyleTTS 2 repository (GitHub)
  5. F5-TTS repository (GitHub)
  6. F5-TTS discussion #997 on commercial use of fine-tuned models
  7. Coqui XTTS-v2 model card (Hugging Face)
  8. Coqui Public Model License (XTTS-v2)

More guides

How much audio do you need to fine-tune a TTS voice? · Building accent-accurate voice agents · Licensed vs scraped voice data: consent and rights · Language & accent guides

Questions

Can I fine-tune XTTS-v2 for a commercial product?

Not under its default license. The Coqui Public Model License is non-commercial and says that training other models for commercial use is not a non-commercial purpose. Check for a separate commercial license or choose a model with commercially usable weights.

Can I use F5-TTS commercially?

The code is MIT, but the published pretrained models are CC-BY-NC because of their training data, and the maintainers say fine-tuning from them does not remove that restriction. Training from scratch on data you have commercial rights to is the alternative.

Which model is easiest to start with?

Piper is a common starting point: it has a documented fine-tuning workflow, small models and fast CPU inference. It is GPL-3.0, so check that fits how you distribute your software.

Your first samples are free.

Tell us the language, accent, gender and how many voices you need. Sourcing and 2-minute samples cost nothing.

Add details (optional)