Environment Configuration
Detailed steps to configure the FireRedTTS runtime environment
1. Clone the Repository
git clone https://github.com/FireRedTeam/FireRedTTS.git
cd FireRedTTS
2. Create a Virtual Environment
python -m venv fireredtts-env
source fireredtts-env/bin/activate # Linux/macOS
# or
fireredtts-env\Scripts\activate # Windows
3. Install Dependencies
pip install -r requirements.txt
4. Download Pre-trained Models
Download pre-trained models from the following link and place them in the specified directory:
5. Configure Environment Variables
export MODEL_PATH=/path/to/your/model # Linux/macOS
# or
set MODEL_PATH=C:\path\to\your\model # Windows
Frequently Asked Questions
Q: What to do if errors occur during dependency installation?
A: Ensure your Python version meets the requirements and try upgrading pip: pip install --upgrade pip
Q: What to do if CUDA-related errors occur during runtime?
A: Check if your CUDA and cuDNN versions are compatible with PyTorch, or run in CPU mode.
Q: What to do if model loading is slow?
A: It takes time to load the model for the first time, subsequent loads will be faster. Ensure the model files are complete and placed in the correct location.