mirror of
https://github.com/wassname/TTS.git
synced 2026-09-05 16:20:11 +08: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