mirror of https://github.com/coqui-ai/TTS.git
Merge branch 'dev' of github.com:mozilla/TTS into dev
This commit is contained in:
commit
3bfb2a2e96
|
@ -28,7 +28,6 @@
|
||||||
"embedding_size": 256,
|
"embedding_size": 256,
|
||||||
"text_cleaner": "english_cleaners",
|
"text_cleaner": "english_cleaners",
|
||||||
"epochs": 1000,
|
"epochs": 1000,
|
||||||
|
|
||||||
"lr": 0.001,
|
"lr": 0.001,
|
||||||
"lr_decay": false,
|
"lr_decay": false,
|
||||||
"warmup_steps": 4000,
|
"warmup_steps": 4000,
|
||||||
|
|
|
@ -8,7 +8,7 @@ def tts_cache(root_path, meta_file):
|
||||||
with open(txt_file, 'r', encoding='utf8') as f:
|
with open(txt_file, 'r', encoding='utf8') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
cols = line.split('| ')
|
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)
|
random.shuffle(items)
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ if __name__ == "__main__":
|
||||||
linear = ap.spectrogram(x.astype('float32')).astype('float32')
|
linear = ap.spectrogram(x.astype('float32')).astype('float32')
|
||||||
linear_len = linear.shape[1]
|
linear_len = linear.shape[1]
|
||||||
np.save(linear_path, linear, allow_pickle=False)
|
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
|
assert mel_len == linear_len
|
||||||
if args.process_audio:
|
if args.process_audio:
|
||||||
audio_file = file_name + "_audio"
|
audio_file = file_name + "_audio"
|
||||||
|
|
Loading…
Reference in New Issue