Fix web generate with rnn bug

This commit is contained in:
babysor00 2022-03-19 12:16:55 +08:00
parent 6009da7072
commit 374cc89cfa

View File

@ -109,7 +109,7 @@ def webApp():
spec = np.concatenate(specs, axis=1)
sample_rate = Synthesizer.sample_rate
if "vocoder" in request.form and request.form["vocoder"] == "WaveRNN":
wav = rnn_vocoder.infer_waveform(spec)
wav, sample_rate = rnn_vocoder.infer_waveform(spec)
else:
wav, sample_rate = gan_vocoder.infer_waveform(spec)