Here I will describe my walktrough of HF's audio course unit 6 TTS text to speech generation hands on.
1. I just have to fine-tune SpeechT5 model on any TTS dataset on any non-english language.
1.1. ASR datasets are also suitable for TTS fine-tuning.
2. I chose "ylacombe/cml-tts" TTS dataset and portuguese language.
3. While doing dataset.map(extract_all_chars) I got TypeError: expected str instance, NoneType found.
3.1. In extract_all_chars function add str() // all_text = " ".join(str(batch["transcript_wav2vec"]))
4. To get speaker embeddings use speechbrain/spkrec-xvect-voxceleb (eng) or Matthijs/cmu-arctic-xvectors (eng)
5. If you want to evaluate TTS model during training, unfortunately you can't.
6. My dataset is too big to download. So I've used load_dataset(streaming=True).And because of that I get error during training KeyError: "labels" "Indexing with integers is not available when using Python based feature extractors"
6.1. I think the problem in prepare_dataset function. All labels should be strings. // try string transition. >>> example["labels"]=str(example["labels"][0]) // Cause another error
6.2. In function that filter length try to fillter audio which is too small also >>> def is_not_too_long(... return 50 < input_length < 200) // Helped somehow. Maybe bad examples were deleted.