|
|
@ -58,9 +58,15 @@ def main():
|
|
|
|
mel_path = output_dir / ("raw/" + name)
|
|
|
|
mel_path = output_dir / ("raw/" + name)
|
|
|
|
gen_mel = np.load(mel_path)
|
|
|
|
gen_mel = np.load(mel_path)
|
|
|
|
wave_name = utt_id + "_wave.npy"
|
|
|
|
wave_name = utt_id + "_wave.npy"
|
|
|
|
wav = np.load(old_dump_dir / sub / ("raw/" + wave_name))
|
|
|
|
try:
|
|
|
|
os.symlink(old_dump_dir / sub / ("raw/" + wave_name),
|
|
|
|
wav = np.load(old_dump_dir / sub / ("raw/" + wave_name))
|
|
|
|
output_dir / ("raw/" + wave_name))
|
|
|
|
os.symlink(old_dump_dir / sub / ("raw/" + wave_name),
|
|
|
|
|
|
|
|
output_dir / ("raw/" + wave_name))
|
|
|
|
|
|
|
|
except FileNotFoundError:
|
|
|
|
|
|
|
|
print("delete " + name + " because it cannot be found in the dump folder")
|
|
|
|
|
|
|
|
os.remove(output_dir / "raw" / name)
|
|
|
|
|
|
|
|
except FileExistsError:
|
|
|
|
|
|
|
|
print("file " + name + " exists, skip.")
|
|
|
|
num_sample = wav.shape[0]
|
|
|
|
num_sample = wav.shape[0]
|
|
|
|
num_frames = gen_mel.shape[0]
|
|
|
|
num_frames = gen_mel.shape[0]
|
|
|
|
wav_path = output_dir / ("raw/" + wave_name)
|
|
|
|
wav_path = output_dir / ("raw/" + wave_name)
|
|
|
|