diff --git a/codes/data/audio/nv_tacotron_dataset.py b/codes/data/audio/nv_tacotron_dataset.py index 6562e7a2..d00441b7 100644 --- a/codes/data/audio/nv_tacotron_dataset.py +++ b/codes/data/audio/nv_tacotron_dataset.py @@ -18,7 +18,8 @@ from utils.util import opt_get def load_tsv(filename): with open(filename, encoding='utf-8') as f: components = [line.strip().split('\t') for line in f] - filepaths_and_text = [[component[1], component[0]] for component in components] + base = os.path.dirname(filename) + filepaths_and_text = [[os.path.join(base, f'clips/{component[1]}'), component[0]] for component in components] return filepaths_and_text