mirror of https://github.com/coqui-ai/TTS.git
css10 dataset preprocessor
This commit is contained in:
parent
0c6519c838
commit
9cad435288
|
@ -166,6 +166,20 @@ def ljspeech(root_path, meta_file):
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
||||||
|
def css10(root_path, meta_file):
|
||||||
|
"""Normalizes the CSS10 dataset file to TTS format"""
|
||||||
|
txt_file = os.path.join(root_path, meta_file)
|
||||||
|
items = []
|
||||||
|
speaker_name = "ljspeech"
|
||||||
|
with open(txt_file, 'r') as ttf:
|
||||||
|
for line in ttf:
|
||||||
|
cols = line.split('|')
|
||||||
|
wav_file = os.path.join(root_path, cols[0])
|
||||||
|
text = cols[1]
|
||||||
|
items.append([text, wav_file, speaker_name])
|
||||||
|
return items
|
||||||
|
|
||||||
|
|
||||||
def nancy(root_path, meta_file):
|
def nancy(root_path, meta_file):
|
||||||
"""Normalizes the Nancy meta data file to TTS format"""
|
"""Normalizes the Nancy meta data file to TTS format"""
|
||||||
txt_file = os.path.join(root_path, meta_file)
|
txt_file = os.path.join(root_path, meta_file)
|
||||||
|
|
Loading…
Reference in New Issue