-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
35 lines (31 loc) · 1.52 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
python:
#!/bin/bash
# Check if .venv directory exists; if not, create a virtual environment
if [ ! -d ".venv" ]; then \
python -m venv .venv; \
fi
# Activate the virtual environment
source .venv/bin/activate
pip install -r requirements.txt
setup:
# Step 1: Download and extract the LJSpeech dataset
wget https://data.keithito.com/data/speech/LJSpeech-1.1.tar.bz2
tar -xvjf LJSpeech-1.1.tar.bz2
# Step 3: Download and extract rfwave ckpt
# wget https://drive.google.com/file/d/1IQNXAAVRTtr9P8Gc-CoPeRIJ_l_O4y38 -O rfwave-libritts-24k.tar.gz
tar -xvzf rfwave-libritts-24k.tar.gz
# Step 3: Download and extract e2_tts ckpt
# wget https://drive.google.com/file/d/1NjaxSuCQSDBy2gys9cRcbpvQcRW-szNs/view?usp=sharing -O e2_tts-cfg_2_cond2-bf16-large_batch.tar.gz
tar -xvzf e2_tts-cfg_2_cond2-bf16-large_batch.tar.gz
data:
#!/bin/bash
source .venv/bin/activate
# Step 1: Run build_ljspeech script
python scripts/build_ljspeech.py && \
# Step 2: Run build_filelist script with specified parameters
python scripts/build_filelist.py --wav_dir LJSpeech-1.1/wavs --transcription_dir LJSpeech-1.1/transcription --filelist LJSpeech-1.1/filelist
test:
#!/bin/bash
source .venv/bin/activate
python inference.py --aco_model_dir ./e2_tts-cfg_2_cond2-bf16-large_batch --voc_model_dir ./rfwave-libritts-24k --phoneset tests/phoneset.th --test_txt tests/test.txt --save_dir ./test_output --ref_audio tests/LJ025-0077.wav --sr 22050
play: python setup data test