mirror of https://github.com/coqui-ai/TTS.git
Debug prints for phoneme extraction
parent
85a1990cc6
commit
0e73b6ba45
|
@ -89,7 +89,7 @@ class MyDataset(Dataset):
|
|||
file_name = os.path.basename(wav_file).split('.')[0]
|
||||
tmp_path = os.path.join("tmp/",file_name+'_phoneme.npy')
|
||||
if os.path.isfile(tmp_path):
|
||||
text = np.load(tmp_path)
|
||||
text = np.load(tmp_path, dtype=np.int32)
|
||||
else:
|
||||
text = np.asarray(
|
||||
phoneme_to_sequence(text, [self.cleaners]), dtype=np.int32)
|
||||
|
|
|
@ -75,6 +75,7 @@ def phoneme_to_sequence(text, cleaner_names):
|
|||
clean_text = _clean_text(text, cleaner_names)
|
||||
for word in clean_text.split():
|
||||
phonemes_text = text2phone(word)
|
||||
print(word, ' -- ', phonemes_text)
|
||||
if phonemes_text == None:
|
||||
print("!! After phoneme conversion the result is None. -- {} ".format(word))
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue