This repository contains the code and resources for training a text-to-speech (TTS) model. The goal is to fine-tune a pre-trained TTS model to improve speech quality and adapt to specific speaker characteristics.
This is a Microsoft SpeechT5 model fine-tuned for Hindi.
This project utilizes the Microsoft Text-To-Speech architecture, which is based on the Google T5 model.
The dataset on Kaggle contains WAV files and labels. These are loaded into a dataset dictionary along with their array representation and sampling rate. All characters are extracted, and new characters found in the data are added to the tokenizer. The Speechbrain model generates speaker embeddings to help the model adjust its output.
The dataset is prepared, and longer files are trimmed according to model requirements (SpeechT5 takes 600 tokens of input). The dataset is split into training and testing sets, and a data collator is implemented to handle padding. Training arguments are set up along with a remote repository. The model is trained for 7 epochs, with training done in steps to handle limited Colab GPU access, and then pushed to a HuggingFace repository.
Loss Curve:
Include a description of the loss curve and what it indicates about training progress. Ensure CUDA is enabled locally to utilize GPU resources.
Analysis: Describe performance improvements observed during fine-tuning.
Listen to samples generated by both the pre-trained and fine-tuned models:
To set up the environment, run the following commands:
git clone https://github.com/MohammadBinAftab/TTS_Hindi.git
cd TTS_Hindi
pip install -r requirements.txt
12 commits
This repository contains the code and resources for training a text-to-speech (TTS) model. The goal is to fine-tune a pre-trained TTS model to improve speech quality and adapt to specific speaker characteristics.
This is a Microsoft SpeechT5 model fine-tuned for Hindi.
This project utilizes the Microsoft Text-To-Speech architecture, which is based on the Google T5 model.
The dataset on Kaggle contains WAV files and labels. These are loaded into a dataset dictionary along with their array representation and sampling rate. All characters are extracted, and new characters found in the data are added to the tokenizer. The Speechbrain model generates speaker embeddings to help the model adjust its output.
The dataset is prepared, and longer files are trimmed according to model requirements (SpeechT5 takes 600 tokens of input). The dataset is split into training and testing sets, and a data collator is implemented to handle padding. Training arguments are set up along with a remote repository. The model is trained for 7 epochs, with training done in steps to handle limited Colab GPU access, and then pushed to a HuggingFace repository.
Loss Curve:
Include a description of the loss curve and what it indicates about training progress. Ensure CUDA is enabled locally to utilize GPU resources.
Analysis: Describe performance improvements observed during fine-tuning.
Listen to samples generated by both the pre-trained and fine-tuned models:
To set up the environment, run the following commands:
git clone https://github.com/MohammadBinAftab/TTS_Hindi.git
cd TTS_Hindi
pip install -r requirements.txt
12 commits
Python
100.0%