Skip to content

Commit fb288bb

Browse files
committed
Use min_text hparam for LJSpeech
1 parent 960fa53 commit fb288bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ljspeech.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def build_from_path(in_dir, out_dir, num_workers=1, tqdm=lambda x: x):
2929
parts = line.strip().split('|')
3030
wav_path = os.path.join(in_dir, 'wavs', '%s.wav' % parts[0])
3131
text = parts[2]
32+
if len(text) < hparams.min_text:
33+
continue
3234
futures.append(executor.submit(
3335
partial(_process_utterance, out_dir, index, wav_path, text)))
3436
index += 1

0 commit comments

Comments
 (0)