An unofficial PyTorch implementation of VALL-E
| config | ||
| data/test | ||
| vall_e | ||
| .gitignore | ||
| .gitmodules | ||
| README.md | ||
| requirements.txt | ||
VALL-E
An unofficial (toy) implementation of VALL-E, based on the encodec tokenizer.
Requirements
1. Clone the project
git clone --recurse-submodules https://github.com/enhuiz/vall-e.git
2. Install requirements
pip install -r requirements.txt
Note: You may need to install additional requirements as you run the script.
Data Preparation
-
Put your data into a folder, e.g.
data/your_data. Audio files should be named with the suffix.wavand text files with.normalized.txt. -
Quantize the data:
python -m vall_e.emb.qnt data/your_data
- Generate phonemes based on the text:
python -m vall_e.emb.g2p data/your_data
-
Customize your configuration by creating
config/your_data/ar.ymlandconfig/your_data/nar.yml. Refer to the example configs inconfig/testandvall_e/config.pyfor details. -
Train the AR or NAR model using the following scripts:
python -m vall_e.train yaml=config/your_data/ar_or_nar.yml
TODO
- AR model for the first quantizer
- Audio decoding from tokens
- NAR model for the rest quantizers
- Trainers for both models
- Pre-trained checkpoint and demos on LibriTTS
