Spaces:
Running
Running
mrfakename
commited on
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
src/f5_tts/train/datasets/prepare_ljspeech.py
CHANGED
@@ -20,6 +20,7 @@ def main():
|
|
20 |
lines = f.readlines()
|
21 |
for line in tqdm(lines):
|
22 |
uttr, text, norm_text = line.split("|")
|
|
|
23 |
wav_path = Path(dataset_dir) / "wavs" / f"{uttr}.wav"
|
24 |
duration = sf.info(wav_path).duration
|
25 |
if duration < 0.4 or duration > 30:
|
|
|
20 |
lines = f.readlines()
|
21 |
for line in tqdm(lines):
|
22 |
uttr, text, norm_text = line.split("|")
|
23 |
+
norm_text = norm_text.strip()
|
24 |
wav_path = Path(dataset_dir) / "wavs" / f"{uttr}.wav"
|
25 |
duration = sf.info(wav_path).duration
|
26 |
if duration < 0.4 or duration > 30:
|