Update convert.py

This commit is contained in:
Rabbit314271 2021-12-10 19:55:00 +08:00 committed by GitHub
parent 12025d8e08
commit a321f9fd60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -36,13 +36,13 @@ def convert(x_spec, y_spec, x_mel, y_mel):
# Spectrogram to waveform
spec_x_audio = np.array(spec2wav(mag=x_spec.T,
n_fft=hparams.timit_n_fft,
win_length=hparams.timit_wim_length,
win_length=hparams.timit_win_length,
hop_length=hparams.timit_hop_length,
num_iters=hparams.convert_num_iters))
spec_y_audio = np.array(spec2wav(mag=y_spec.T,
n_fft=hparams.timit_n_fft,
win_length=hparams.timit_wim_length,
win_length=hparams.timit_win_length,
hop_length=hparams.timit_hop_length,
num_iters=hparams.convert_num_iters))