Merge branch 'drop_cached_dataset' of https://github.com/twerkmeister/TTS into twerkmeister-drop_cached_dataset

This commit is contained in:
Eren Golge
2019-05-14 22:37:39 +02:00
8 changed files with 16 additions and 187 deletions
-12
View File
@@ -1,18 +1,6 @@
import os
def tts_cache(root_path, meta_file):
"""This format is set for the meta-file generated by extract_features.py"""
txt_file = os.path.join(root_path, meta_file)
items = []
with open(txt_file, 'r', encoding='utf8') as f:
for line in f:
cols = line.split('| ')
# text, wav_full_path, mel_name, linear_name, wav_len, mel_len
items.append(cols)
return items
def tweb(root_path, meta_file):
"""Normalize TWEB dataset.
https://www.kaggle.com/bryanpark/the-world-english-bible-speech-dataset