Skip to content

Commit d297536

Browse files
committed
Last column is text
1 parent 2a00278 commit d297536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/piper/train/vits/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def setup(self, stage: str) -> None:
237237
with open(self.csv_path, "r", encoding="utf-8") as csv_file:
238238
reader = csv.reader(csv_file, delimiter="|")
239239
for row_number, row in enumerate(reader, start=1):
240-
utt_id, text = row[0], row[1]
240+
utt_id, text = row[0], row[-1]
241241
audio_path = self.audio_dir / utt_id
242242
if not audio_path.exists():
243243
audio_path = self.audio_dir / f"{utt_id}.wav"

0 commit comments

Comments
 (0)