From a78e2a130376d696003e4730afd01ba1bf5c6070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= <2225664821@qq.com> Date: Sun, 20 Aug 2023 15:02:50 +0800 Subject: [PATCH] Update data_utils.py --- data_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_utils.py b/data_utils.py index 7ffad45..4d9481e 100644 --- a/data_utils.py +++ b/data_utils.py @@ -52,7 +52,7 @@ class TextAudioSpeakerLoader(torch.utils.data.Dataset): lengths = [] skipped = 0 for _id, spk, language, text, phones, tone, word2ph in self.audiopaths_sid_text: - audiopath = f'{_id}.wav' + audiopath = f'{_id}' if self.min_text_len <= len(phones) and len(phones) <= self.max_text_len: phones = phones.split(" ") tone = [int(i) for i in tone.split(" ")]