Merge branch 'dev' of github.com:mozilla/TTS into dev

This commit is contained in:
Eren Golge 2019-01-05 19:28:07 +01:00
commit 3bfb2a2e96
3 changed files with 2 additions and 3 deletions

View File

@ -28,7 +28,6 @@
"embedding_size": 256,
"text_cleaner": "english_cleaners",
"epochs": 1000,
"lr": 0.001,
"lr_decay": false,
"warmup_steps": 4000,

View File

@ -8,7 +8,7 @@ def tts_cache(root_path, meta_file):
with open(txt_file, 'r', encoding='utf8') as f:
for line in f:
cols = line.split('| ')
items.append(cols) # wav_full_path, mel_name, linear_name, wav_len, mel_len, text
items.append(cols) # text, wav_full_path, mel_name, linear_name, wav_len, mel_len
random.shuffle(items)
return items

View File

@ -69,7 +69,7 @@ if __name__ == "__main__":
linear = ap.spectrogram(x.astype('float32')).astype('float32')
linear_len = linear.shape[1]
np.save(linear_path, linear, allow_pickle=False)
output.insert(2, linear_path+".npy")
output.insert(3, linear_path+".npy")
assert mel_len == linear_len
if args.process_audio:
audio_file = file_name + "_audio"