To set up the Indic-TTS environment, follow these steps to install system dependencies, create a Conda environment, and install the required Python packages (PyTorch, Trainer, and TTS).
1. System Dependencies
Install the necessary system libraries using apt-get:
sudo apt-get install libsndfile1-dev ffmpeg enchant
2. Conda Environment
Create and activate a new Conda environment named tts-env:
conda create -n tts-env
conda activate tts-env
3. Install PyTorch
Install PyTorch with CUDA 11.3 support:
pip3 install -U torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
4. Install Trainer
Clone the Trainer repository and install it in editable mode with all dependencies:
git clone https://github.com/gokulkarthik/Trainer
cd Trainer
pip3 install -e .[all]
cd ..
Note: If you are manually copying files instead of cloning, ensure you apply the specific fixes mentioned in the repository documentation for wandb_logger.py, trainer.py, and distribute.py.
5. Install TTS
Clone the TTS repository and install it in editable mode with all dependencies:
git clone https://github.com/gokulkarthik/TTS
cd TTS
pip3 install -e .[all]
cd ..
6. Final Requirements
Install any remaining requirements from the project's requirements file:
pip3 install -r requirements.txt
# 1. Create environment
sudo apt-get install libsndfile1-dev ffmpeg enchant
conda create -n tts-env
conda activate tts-env
# 2. Setup PyTorch
pip3 install -U torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
# 3. Setup Trainer
git clone https://github.com/gokulkarthik/Trainer
cd Trainer
pip3 install -e .[all]
cd ..
# 4. Setup TTS
git clone https://github.com/gokulkarthik/TTS
cd TTS
pip3 install -e .[all]
cd ..
# 5. Install other requirements
pip3 install -r requirements.txt