WhoBuilt

Text-to-Speech Data Preparation and Fine-tuning Workshop

Jun 3, 2025· 34 min· 3.3K views·Watch on YouTube

Speaker

Ronan McGovern of Trellis Research walks through preparing voice data and fine-tuning Sesame’s CSM-1B text-to-speech model in an AI Engineer workshop.

How token-based speech models work

McGovern explains that a text-to-speech model predicts audio tokens from text and prior audio. CSM represents each audio window with 32 tokens: a main transformer predicts the first, while a smaller model decodes the other 31.

Build a voice dataset from video

The Colab workflow uses Whisper to transcribe a single-speaker YouTube video, then combines transcript segments and audio into clips of up to 30 seconds. McGovern recommends correcting transcription errors by hand and says roughly 50 clips can begin to affect quality; his example produced 41 clips. He notes that keeping clips aligned to complete sentences would improve the basic data preparation.

Compare zero-shot and cloned speech

Before training, McGovern tests the base model with text alone and with a voice sample. Text-only generation can produce different speaker types, while voice cloning sounds closer to the sample. He uses these outputs as a baseline for judging the fine-tuned model.

Fine-tune with LoRA and evaluate

McGovern applies rank-32 LoRA adapters to attention and MLP linear layers, leaving just under 2% of parameters trainable. He trains on 41 clips for one epoch; the loss falls from about 6.34 to 3.72, using less than half of a 15 GB GPU. Fine-tuned speech sounds more consistently male and somewhat Irish, while combining fine-tuning with cloning gives the strongest example; he points to pauses and limited data as areas to improve.

Takeaways

  • Start with a single-speaker source if your dataset workflow does not support diarization.
  • Review Whisper transcripts manually, especially names and misspellings, before using them for training.
  • Use clips up to 30 seconds and favor complete sentence boundaries when assembling examples.
  • Compare text-only, voice-cloned, and fine-tuned outputs to see what each step changes.
  • Track evaluation loss and gradient norms in a larger training run, and consider more data to improve voice consistency.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks