add multi-spk static model infer, test=tts

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

@ -247,11 +247,13 @@ 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()])
mel = am_result[0] mel = am_result[0]
self.am_time += (time.time() - am_st) self.am_time += (time.time() - am_st)
# voc # voc

Loading…
Cancel
Save