Follow these steps to set up the local environment for inference.
1. Clone the repository
git clone https://github.com/ASLP-lab/DiffRhythm.git
cd DiffRhythm
2. Install espeak-ng dependency
espeak-ng is required for phonemization.
- Debian-like (Ubuntu, Mint, etc.):
sudo apt-get install espeak-ng - RedHat-like (CentOS, Fedora, etc.):
sudo yum install espeak-ng - MacOS:
brew install espeak-ng - Windows: Download the
.msi installer from espeak-ng releases.
3. Set up Python environment
You can use Conda or a standard virtual environment.
Using Conda:
conda create -n diffrhythm python=3.10
conda activate diffrhythm
Using venv:
python -m venv venv
# Linux/MacOS
source venv/bin/activate
# Windows
venv\Scripts\activate
4. Install requirements
pip install -r requirements.txt
git clone https://github.com/ASLP-lab/DiffRhythm.git
cd DiffRhythm
conda create -n diffrhythm python=3.10
conda activate diffrhythm
pip install -r requirements.txt