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.
Text-to-Speech Data Preparation and Fine-tuning Workshop
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.
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.
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.
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
- works atRonan McGovern works at
Trellis Researchfrom Trellis Research“I'm Ronan from the Trellis Research YouTube channel.”
0:00inMCP Agent Fine tuning WorkshopYouTube Unverified2 sources· Talk
- built
“You also need to install Whisper, which is from OpenAI.”
YouTube Verified3 sources· Talk, GitHub, Web· archived
- metricCSM 1B: 32 audio tokens per window
“there are 32 tokens at every window that represent the sound”
YouTube Unverified1 source· Talk
- metricCSM 1B: 1 billion parameters
“the main one-billion-parameter model”
YouTube Unverified1 source· Talk
- featureCSM 1B: Takes in text and audio and outputs a stream of audio
“capable of taking in text and audio and outputting a stream of audio”
YouTube Unverified1 source· Talk
- uses
Whisper uses
Google Colab
“We're going to use Whisper in the Colab notebook to transcribe the video”
YouTube Unverified1 source· Talk
- feature
Hugging Face: Hosts datasets and model repositories
“so I can push a dataset there”
YouTube Unverified1 source· Talk
















