Change speaker_idx to speaker_name

This commit is contained in:
Eren Gölge 2021-12-16 14:55:43 +00:00
parent abedfd586d
commit 08a1cf3dcb
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def tts():
style_wav = style_wav_uri_to_dict(style_wav)
print(" > Model input: {}".format(text))
wavs = synthesizer.tts(text, speaker_idx=speaker_idx, style_wav=style_wav)
wavs = synthesizer.tts(text, speaker_name=speaker_idx, style_wav=style_wav)
out = io.BytesIO()
synthesizer.save_wav(wavs, out)
return send_file(out, mimetype="audio/wav")