- Make directory of txt file in it.
input/
├── 1.txt
└── 2.txt
0 directories, 2 files
- Install dependency. Use virtual env.
> python -m venv venv
> source venv/bin/activate
> pip install styletts2 tqdm
- Run script.
python text2wav.py -i input -o output
- If if works
output
├── 1.wav
└── 2.wav
0 directories, 2 files