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
| Model | Code license | Pretrained weights | Notes for fine-tuning |
|---|---|---|---|
| Piper | GPL-3.0 (piper1-gpl) | Voice checkpoints published per dataset; check each voice's model card | Fast, 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 2 | MIT (repo) | LibriTTS checkpoint comes with a condition: tell listeners the speech is synthesized unless you have permission to use the voice | Ships a fine-tuning config (config_ft.yml). The authors' example fine-tunes on about 1 hour of LJSpeech for 50 epochs. |
| F5-TTS | MIT (repo) | Pretrained models are CC-BY-NC because of the Emilia training data | The 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-v2 | Coqui code (now community-maintained) | Coqui Public Model License, non-commercial | Supports 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
- Put clips and transcripts in the format the recipe expects (Piper and StyleTTS 2 use LJSpeech-style metadata files).
- Start from a checkpoint you are allowed to use. Fine-tuning converges far faster than training from scratch.
- Train, and listen to checkpoints along the way, not just the loss curve.
- 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
- Piper repository, OHF-Voice/piper1-gpl (GitHub)
- Piper training guide (TRAINING.md)
- Piper issue #68: how much data to fine-tune
- StyleTTS 2 repository (GitHub)
- F5-TTS repository (GitHub)
- F5-TTS discussion #997 on commercial use of fine-tuned models
- Coqui XTTS-v2 model card (Hugging Face)
- 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