Fix synthesis.py 🔧

This commit is contained in:
Eren Gölge 2022-01-07 15:33:24 +00:00
parent edec27738b
commit 131bc0cfc0
1 changed files with 2 additions and 4 deletions

View File

@ -113,8 +113,6 @@ def synthesis(
text,
CONFIG,
use_cuda,
ap,
tokenizer,
speaker_id=None,
style_wav=None,
use_griffin_lim=False,
@ -166,10 +164,10 @@ def synthesis(
if isinstance(style_wav, dict):
style_mel = style_wav
else:
style_mel = compute_style_mel(style_wav, ap, cuda=use_cuda)
style_mel = compute_style_mel(style_wav, model.ap, cuda=use_cuda)
# convert text to sequence of token IDs
text_inputs = np.asarray(
tokenizer.text_to_ids(text),
model.tokenizer.text_to_ids(text),
dtype=np.int32,
)
# pass tensors to backend