update vc/tts code

This commit is contained in:
lyuxiang.lx
2024-09-26 11:53:10 +08:00
parent 49015f63e6
commit 72b89a52fb
5 changed files with 74 additions and 21 deletions

View File

@@ -145,6 +145,7 @@ def fade_in_out(fade_in_mel, fade_out_mel, window):
fade_out_mel[..., -mel_overlap_len:] * window[mel_overlap_len:]
return fade_in_mel.to(device)
def set_all_random_seed(seed):
random.seed(seed)
np.random.seed(seed)