mirror of https://github.com/coqui-ai/TTS.git
change exception type in TTSDataset loading audio file
This commit is contained in:
parent
9466505f27
commit
455667d2a4
|
@ -83,7 +83,7 @@ class MyDataset(Dataset):
|
||||||
try:
|
try:
|
||||||
audio = self.ap.load_wav(filename)
|
audio = self.ap.load_wav(filename)
|
||||||
return audio
|
return audio
|
||||||
except RuntimeError as e:
|
except:
|
||||||
print(" !! Cannot read file : {}".format(filename))
|
print(" !! Cannot read file : {}".format(filename))
|
||||||
|
|
||||||
def load_np(self, filename):
|
def load_np(self, filename):
|
||||||
|
|
Loading…
Reference in New Issue