Merge pull request #418 from forcecore/fix_phoneme_cache

Fix phoneme cache file name aliasing problem
This commit is contained in:
Eren Gölge 2020-05-31 14:18:04 +02:00 committed by GitHub
commit e2dda3377c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class MyDataset(Dataset):
return phonemes
def _load_or_generate_phoneme_sequence(self, wav_file, text):
file_name = os.path.basename(wav_file).split('.')[0]
file_name = os.path.splitext(os.path.basename(wav_file))[0]
cache_path = os.path.join(self.phoneme_cache_path,
file_name + '_phoneme.npy')
try: