mirror of
https://github.com/coqui-ai/TTS.git
synced 2025-12-24 20:29:30 +01:00
change exception type in TTSDataset loading audio file
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user