add multi-spk static model infer, test=tts

pull/2945/head
liangym 3 years ago
parent 700e281e4b
commit bfae0be1a6

@ -247,7 +247,9 @@ class TTSServerExecutor(TTSExecutor):
else: else:
# multi speaker do not have static model # multi speaker do not have static model
if am_dataset in {"aishell3", "vctk"}: if am_dataset in {"aishell3", "vctk"}:
pass am_result = run_model(
self.am_predictor,
[part_phone_ids.numpy(), np.array([spk_id])])
else: else:
am_result = run_model(self.am_predictor, am_result = run_model(self.am_predictor,
[part_phone_ids.numpy()]) [part_phone_ids.numpy()])

Loading…
Cancel
Save