new commits

This commit is contained in:
liuhaozhe6788
2023-06-19 19:44:56 +08:00
parent f3d34866a8
commit 000c3ad71f
4 changed files with 14 additions and 10 deletions

View File

@@ -311,7 +311,7 @@ if __name__ == '__main__':
# Synthesizing the waveform is fairly straightforward. Remember that the longer the
# spectrogram, the more time-efficient the vocoder.
if not args.griffin_lim:
wav = vocoder.infer_waveform(spec, target=4000, overlap=400)
wav = vocoder.infer_waveform(spec, target=vocoder.hp.voc_target, overlap=vocoder.hp.voc_overlap, crossfade=vocoder.hp.is_crossfade)
else:
wav = Synthesizer.griffin_lim(spec)