change exception type in TTSDataset loading audio file

This commit is contained in:
Eren Golge
2019-04-12 16:12:31 +02:00
parent 9466505f27
commit 455667d2a4

View File

@@ -83,7 +83,7 @@ class MyDataset(Dataset):
try:
audio = self.ap.load_wav(filename)
return audio
except RuntimeError as e:
except:
print(" !! Cannot read file : {}".format(filename))
def load_np(self, filename):